unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Jesse Gibbons <jgibbons2357@gmail.com>
To: 42814@debbugs.gnu.org
Subject: bug#42814: request: make guix upgrade recognize --do-not-upgrade
Date: Tue, 11 Aug 2020 12:37:06 -0600	[thread overview]
Message-ID: <6f97171f-73ac-8289-d006-e379d00c0785@gmail.com> (raw)

 From the manual:

    • ‘guix search’ is an alias for ‘guix package -s’,
    • ‘guix install’ is an alias for ‘guix package -i’,
    • ‘guix remove’ is an alias for ‘guix package -r’,
    • ‘guix upgrade’ is an alias for ‘guix package -u’,
    • and ‘guix show’ is an alias for ‘guix package --show=’.

One option for "guix package -u" I often find myself using is 
--do-not-upgrade. However, guix upgrade does not recognize that option.

When I run "guix upgrade --do-not-upgrade=ungoogled-chromium" I get the 
following results:

guix upgrade: error: do-not-upgrade=ungoogled-chromium: unrecognized option

This is a bit frustrating, because I want to be able to upgrade all my 
profiles with the command:

"guix package --list-profiles | xargs -n1 guix upgrade 
--do-not-upgrade=ungoogled-chromium"

But it prints the above error for every profile and doesn't actually do 
anything.

For now, my work-around is code like the following:

"for profile in $(guix package --list-profiles); do guix package -p 
$profile --do-not-upgrade=ungoogled-chromium -u; done"

As you can see, this is quite a bit more complex than it needs to be.

So, why not have guix upgrade recognize the --do-not-upgrade option?





             reply	other threads:[~2020-08-11 18:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-11 18:37 Jesse Gibbons [this message]
2020-08-28 12:28 ` bug#42814: request: make guix upgrade recognize --do-not-upgrade Mathieu Othacehe

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=6f97171f-73ac-8289-d006-e379d00c0785@gmail.com \
    --to=jgibbons2357@gmail.com \
    --cc=42814@debbugs.gnu.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).