From a81706494753ad84754cbb7583ccc783452decc0 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Thu, 11 Aug 2022 15:55:38 +0200 Subject: build-system/channel: Correctly handle store file name from (gnu ci). This is a followup to cf60a0a906440ccb007bae1243c3e0397c3a0aba. Reported by Mathieu Othacehe . * guix/build-system/channel.scm (build-channels): Add 'string?' case. --- guix/build-system/channel.scm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'guix/build-system') 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))) -- cgit v1.2.3