--- Begin Message ---
Subject: |
`guix deploy` doesn't recognize option --dry-run |
Date: |
Thu, 26 Nov 2020 13:11:33 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Icedove/78.4.0 |
--dry-run is an option listed in `guix deploy --help` but when I try it,
it isn't recognized:
$ guix deploy --dry-run deploy.scm
guix deploy: error: dry-run: unrecognized option
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#44893: `guix deploy` doesn't recognize option --dry-run |
Date: |
Mon, 25 Jul 2022 08:31:50 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) |
Hi,
Ludovic Courtès <ludo@gnu.org> writes:
> Hi,
>
> We can make this change:
>
> diff --git a/guix/scripts/deploy.scm b/guix/scripts/deploy.scm
> index 0725fba54b..d9371b3d4a 100644
> --- a/guix/scripts/deploy.scm
> +++ b/guix/scripts/deploy.scm
> @@ -165,7 +165,9 @@ Perform the deployment specified by FILE.\n"))
> (with-build-handler (build-notifier #:use-substitutes?
> (assoc-ref opts 'substitutes?)
> #:verbosity
> - (assoc-ref opts 'verbosity))
> + (assoc-ref opts 'verbosity)
> + #:dry-run?
> + (assoc-ref opts 'dry-run?))
> (parameterize ((%graft? (assq-ref opts 'graft?)))
> (map/accumulate-builds store
> (cut deploy-machine* store <>)
>
>
> It may not be the kind of “dry run” that users have in mind for ‘guix
> deploy’, as you note zimoun, but that’s probably better than nothing.
>
> Thoughts?
I see such a fix was pushed as ff94f9dfde; closing!
Thank you,
Maxim
--- End Message ---