Message ID | 20230302064930.7947-1-atai@atai.org |
---|---|
State | New |
Headers | show |
Series | [bug#61907] scripts: Expose 'allow-collisions' for 'guix upgrade' | expand |
Hi, On Wed, 01 Mar 2023 at 22:49, Andy Tai <atai@atai.org> wrote: > * guix/scripts/install.scm: Expose 'allow-collisions' option of 'package' > for 'upgrade' alias I would apply the same explanation as Leo in [1] for #61864, [PATCH] scripts: expose 'allow-collisions' for 'guix install' 1: http://issues.guix.gnu.org/msgid/ZChh1GFQnKRBITmL@jasmine.lan Cheers, simon
Hi Andy and Simon, Simon Tournier <zimon.toutoune@gmail.com> writes: > Hi, > > On Wed, 01 Mar 2023 at 22:49, Andy Tai <atai@atai.org> wrote: >> * guix/scripts/install.scm: Expose 'allow-collisions' option of 'package' >> for 'upgrade' alias > > I would apply the same explanation as Leo in [1] for #61864, > > [PATCH] scripts: expose 'allow-collisions' for 'guix install' > > 1: http://issues.guix.gnu.org/msgid/ZChh1GFQnKRBITmL@jasmine.lan I agree. Closing, but feel free to continue the discussion. Best,
diff --git a/guix/scripts/upgrade.scm b/guix/scripts/upgrade.scm index beb59cbe6f..423760a93b 100644 --- a/guix/scripts/upgrade.scm +++ b/guix/scripts/upgrade.scm @@ -36,6 +36,8 @@ (define (show-help) This is an alias for 'guix package -u'.\n")) (display (G_ " -p, --profile=PROFILE use PROFILE instead of the user's default profile")) + (display (G_ " + --allow-collisions do not treat collisions in the profile as an error")) (display (G_ " -v, --verbosity=LEVEL use the given verbosity LEVEL")) (display (G_ " @@ -65,7 +67,8 @@ (define %options ;; Preserve some of the 'guix package' options. (append (filter (lambda (option) (any (cut member <> (option-names option)) - '("profile" "dry-run" "verbosity" "do-not-upgrade"))) + '("profile" "dry-run" "verbosity" "do-not-upgrade" + "allow-collisions"))) %package-options) %transformation-options