unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Brendan Tildesley via Bug reports for GNU Guix <bug-guix@gnu.org>
To: 47618@debbugs.gnu.org
Subject: bug#47618: "guix upgrade" and "guix package -u ." inconsistency
Date: Tue, 6 Apr 2021 13:20:01 +0200 (CEST)	[thread overview]
Message-ID: <704666652.34576.1617708001601@office.mailbox.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 3194 bytes --]

Below, --do-not-upgrade appears to be behaving like "--only-upgrade". I realised
this comes about because I didn't use '='. guix upgrade takes all other
arguments to be upgrade regex's, but it still seems. _wrong_.  Some long
arguments in guix require and = sign after them, and the cli help indicates as
much, but --do-not-upgrade seems to break that pattern and takes all arguments
after it to be regexes's to match and not upgrade.  flags that have this
behaviour of acting on all arguments after them should indicate clearly they do
that. and indicated if the '=' is optional using some intuitive notation.
The line:

--do-not-upgrade[=REGEXP] do not upgrade any packages matching REGEXP

suggest it must take either no argument or only '=something'.

guix upgrade --help says that it is an alias for 'guix package -u .'. My
understanding is that the meaning of alias is something that can be substituted
and it will behave the same, like Bash aliases.  We should change 'guix
upgrade''s behaviour to be like 'guix package -u', taking all arguments after
--do-not-upgrade as regex's to not upgrade.


b@jiu ~/code/guix [env]$ guix upgrade --do-not-upgrade '^[a-n]'
The following packages will be upgraded:
audacity          (dependencies or package changed)
cool-retro-term   (dependencies or package changed)
deluge            (dependencies or package changed)
diffoscope        170 → 171
emacs             (dependencies or package changed)
eog               (dependencies or package changed)
evince            (dependencies or package changed)
ffmpeg            (dependencies or package changed)
git               2.31.0 → 2.31.1
git:send-email    2.31.0 → 2.31.1
gnome-font-viewer (dependencies or package changed)
gnome-tweaks      (dependencies or package changed)
godot             (dependencies or package changed)
ibus              (dependencies or package changed)
ibus-anthy        (dependencies or package changed)
icecat            (dependencies or package changed)
keepassxc         (dependencies or package changed)
lm-sensors        (dependencies or package changed)
lollypop          (dependencies or package changed)
mpv               (dependencies or package changed)
mumble            (dependencies or package changed)

62.6 MB will be downloaded
^C
b@jiu ~/code/guix [env]$ guix package -u . --do-not-upgrade '^[a-n]'
The following packages will be upgraded:
obs                (dependencies or package changed)
piper              (dependencies or package changed)
playonlinux        (dependencies or package changed)
rhythmbox          (dependencies or package changed)
stellarium         (dependencies or package changed)
syncthing-gtk      (dependencies or package changed)
tinc               (dependencies or package changed)
transmission:gui   (dependencies or package changed)
ungoogled-chromium (dependencies or package changed)
vlc                (dependencies or package changed)
youtube-dl         (dependencies or package changed)
zrythm             (dependencies or package changed)

The following derivation will be built:
/gnu/store/6ldzv7ilcsg4ah8vyig9vyh9y79yz6m1-tinc-1.1pre17.drv


[-- Attachment #2: Type: text/html, Size: 5815 bytes --]

                 reply	other threads:[~2021-04-06 14:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=704666652.34576.1617708001601@office.mailbox.org \
    --to=bug-guix@gnu.org \
    --cc=47618@debbugs.gnu.org \
    --cc=btild@mailbox.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).