[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/18: shell: '--export-manifest -D x -D y' generates a valid manifest.
From: |
guix-commits |
Subject: |
01/18: shell: '--export-manifest -D x -D y' generates a valid manifest. |
Date: |
Wed, 1 Jun 2022 17:29:17 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 2acc83daa5a3dd1b4ed3f8c32ecadf1313e6fd18
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Tue May 31 09:47:42 2022 +0200
shell: '--export-manifest -D x -D y' generates a valid manifest.
* guix/scripts/shell.scm (manifest->code*): Add missing 'list' in
generated 'concatenate-manifests' call.
* tests/guix-shell-export-manifest.sh: Add test.
---
guix/scripts/shell.scm | 2 +-
tests/guix-shell-export-manifest.sh | 5 +++++
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/guix/scripts/shell.scm b/guix/scripts/shell.scm
index d9af2517c2..1a6df98829 100644
--- a/guix/scripts/shell.scm
+++ b/guix/scripts/shell.scm
@@ -410,7 +410,7 @@ concatenates MANIFESTS, a list of expressions."
(if (null? (manifest-entries manifest))
(match extra-manifests
((one) one)
- (lst `(concatenate-manifests ,@extra-manifests)))
+ (lst `(concatenate-manifests (list ,@extra-manifests))))
(match (manifest->code manifest
#:entry-package-version
manifest-entry-version-prefix)
diff --git a/tests/guix-shell-export-manifest.sh
b/tests/guix-shell-export-manifest.sh
index f83904deb4..05429955b9 100644
--- a/tests/guix-shell-export-manifest.sh
+++ b/tests/guix-shell-export-manifest.sh
@@ -69,6 +69,11 @@ guix build -m "$manifest" -d | \
guix build -m "$manifest" -d | \
grep "$(guix build git -d)"
+guix shell --export-manifest -D guile -D python-itsdangerous > "$manifest"
+guix build -m "$manifest" -d | grep "$(guix build libffi -d)"
+guix build -m "$manifest" -d | \
+ grep "$(guix build -e '(@ (gnu packages python) python)' -d)"
+
# Test various combinations to make sure generated code uses interfaces
# correctly.
for options in \
- branch master updated (572bc6d7bd -> 582b4bb4ce), guix-commits, 2022/06/01
- 01/18: shell: '--export-manifest -D x -D y' generates a valid manifest.,
guix-commits <=
- 08/18: gnu: libstrophe: Improve package definition., guix-commits, 2022/06/01
- 09/18: gnu: profanity: Update to 0.12.1., guix-commits, 2022/06/01
- 10/18: gnu: libmesode: Remove package., guix-commits, 2022/06/01
- 04/18: gnu: Add perl-socket-msghdr, guix-commits, 2022/06/01
- 02/18: gnu: Add emacs-bfuture., guix-commits, 2022/06/01
- 03/18: gnu: public-inbox: Some packaging fixes, guix-commits, 2022/06/01
- 05/18: gnu: public-inbox: Update to 1.8.0., guix-commits, 2022/06/01
- 06/18: gnu: emacs-doom-themes: Include extension files., guix-commits, 2022/06/01
- 14/18: gnu: Add python-osmnx, guix-commits, 2022/06/01
- 15/18: gnu: Add freerct., guix-commits, 2022/06/01