mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
guix-build: Error out when `-S' used for source-less package.
* guix-build.in (derivations-from-package-expressions): Leave with an error message when SOURCE? is #t and P has no source. * tests/guix-build.sh: Add test.
This commit is contained in:
@@ -23,7 +23,12 @@
|
||||
guix-build --version
|
||||
|
||||
# Should fail.
|
||||
guix-build -e + || true
|
||||
if guix-build -e +;
|
||||
then false; else true; fi
|
||||
|
||||
# Should fail because this is a source-less package.
|
||||
if guix-build -e '(@ (distro packages bootstrap) %bootstrap-glibc)' -S
|
||||
then false; else true; fi
|
||||
|
||||
# Should pass.
|
||||
guix-build -e '(@@ (distro packages base) %bootstrap-guile)' | \
|
||||
|
||||
Reference in New Issue
Block a user