summary refs log tree commit diff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2022-08-11 15:55:38 +0200
committerLudovic Courtès <ludo@gnu.org>2022-08-11 15:57:35 +0200
commita81706494753ad84754cbb7583ccc783452decc0 (patch)
tree9607333baafa35dae6a13153a1cf60ddce42aa00
parentd7aaf386111f6d54fcfb0bc2f8fe87c580039f0b (diff)
downloadguix-a81706494753ad84754cbb7583ccc783452decc0.tar.gz
build-system/channel: Correctly handle store file name from (gnu ci).
This is a followup to cf60a0a906440ccb007bae1243c3e0397c3a0aba.

Reported by Mathieu Othacehe <othacehe@gnu.org>.

* guix/build-system/channel.scm (build-channels): Add 'string?' case.
-rw-r--r--guix/build-system/channel.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/guix/build-system/channel.scm b/guix/build-system/channel.scm
index b6ef3bfacf..6ad377f930 100644
--- a/guix/build-system/channel.scm
+++ b/guix/build-system/channel.scm
@@ -46,6 +46,13 @@
                                (latest-channel-instances*
                                 (list source)
                                 #:authenticate? authenticate?))
+                              ((string? source)
+                               ;; If SOURCE is a store file name, as is the
+                               ;; case when called from (gnu ci), return it as
+                               ;; is.
+                               (return
+                                (list (checkout->channel-instance
+                                       source #:commit commit))))
                               (else
                                (mlet %store-monad ((source
                                                     (lower-object source)))