diff options
author | Ludovic Courtès <ludo@gnu.org> | 2024-10-22 15:14:48 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-11-12 23:46:52 +0100 |
commit | f7a0be4d736a56403fd9bd630dc723f59f348453 (patch) | |
tree | 39be333fbd19858b6f9dc01c489ce68c230c9157 | |
parent | c62f8ab11ff915bd834fc1db5dba3449c9b4b474 (diff) | |
download | guix-f7a0be4d736a56403fd9bd630dc723f59f348453.tar.gz guix-f7a0be4d736a56403fd9bd630dc723f59f348453.zip |
ui: ‘show-what-to-build’ displays builds in topological order.
That gives something like:
$ ./pre-inst-env guix build vim --no-grafts --no-substitutes -n
The following derivations would be built:
/gnu/store/…-tcsh-6.24.01.tar.gz.drv
/gnu/store/…-tcsh-6.24.01.tar.zst.drv
/gnu/store/…-tcsh-6.24.01.drv
/gnu/store/…-vim-9.1.0744-checkout.drv
/gnu/store/…-vim-9.1.0744.drv
… with the derivation(s) being asked for coming last.
* guix/ui.scm (show-what-to-build): Reverse ‘build/full’ before folding it.
Change-Id: Ic0da9f4f8a58c7ed5e2d10f6ec2226f0865aed75
-rw-r--r-- | guix/ui.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guix/ui.scm b/guix/ui.scm index 966f0611f6..447550635c 100644 --- a/guix/ui.scm +++ b/guix/ui.scm @@ -1077,7 +1077,7 @@ summary, and level 0 shows nothing." #:hook ,hook #:build ,(cons file build)))))))) '(#:graft () #:hook () #:build ()) - build/full) + (reverse! build/full)) ;preserve ordering ((#:graft graft #:hook hook #:build build) (values graft hook build))))) (define installed-size |