mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 13:10:33 +02:00
guix build: Add '--with-commit'.
* guix/git.scm (<git-checkout>)[commit]: New field. (git-checkout-compiler): Honor it. * guix/scripts/build.scm (evaluate-git-replacement-specs): Add 'proc' parameter and honor it. (transform-package-source-branch)[replace]: New procedure. Adjust 'evaluate-git-replacement-specs' accordingly. (transform-package-source-commit): New procedure. (%transformations, %transformation-options) (show-transformation-options-help): Add 'with-commit'. * tests/guix-build-branch.sh: Add test. * doc/guix.texi (Package Transformation Options): Document it.
This commit is contained in:
committed by
Ludovic Courtès
parent
96915a448c
commit
b18f7234aa
@@ -46,3 +46,8 @@ orig_drv="`guix build guix -d`"
|
||||
latest_drv="`guix build guix --with-branch=guile-gcrypt=master -d`"
|
||||
guix gc -R "$latest_drv" | grep guile-gcrypt-git.master
|
||||
test "$orig_drv" != "$latest_drv"
|
||||
|
||||
v0_1_0_drv="`guix build guix --with-commit=guile-gcrypt=9e3eacdec1d -d`"
|
||||
guix gc -R "$v0_1_0_drv" | grep guile-gcrypt-git.9e3eacd
|
||||
test "$v0_1_0_drv" != "$latest_drv"
|
||||
test "$v0_1_0_drv" != "$orig_drv"
|
||||
|
||||
Reference in New Issue
Block a user