diff options
author | Ludovic Courtès <ludovic.courtes@inria.fr> | 2018-11-30 13:24:48 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2018-11-30 17:03:04 +0100 |
commit | b18f7234aac9eb42097c1b4cda7efe0be5aab132 (patch) | |
tree | b4381cbb251ad72d35096e38a068f3bd4564aa0f /tests/guix-build-branch.sh | |
parent | 96915a448cfe8383a1c47f4b9a1cc810e5161fd0 (diff) | |
download | patches-b18f7234aac9eb42097c1b4cda7efe0be5aab132.tar patches-b18f7234aac9eb42097c1b4cda7efe0be5aab132.tar.gz |
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.
Diffstat (limited to 'tests/guix-build-branch.sh')
-rw-r--r-- | tests/guix-build-branch.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/guix-build-branch.sh b/tests/guix-build-branch.sh index bc50d9c0ef..89c1a3cce0 100644 --- a/tests/guix-build-branch.sh +++ b/tests/guix-build-branch.sh @@ -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" |