[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/12: lint: archival: Fix crash in non-Git case.
From: |
guix-commits |
Subject: |
02/12: lint: archival: Fix crash in non-Git case. |
Date: |
Sat, 9 Mar 2024 13:49:04 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 3328dec08757a14ae47f4cbd7017b7518adc689e
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Feb 19 17:51:34 2024 +0100
lint: archival: Fix crash in non-Git case.
Fixes a bug introduced in 29f3089c841f00144f24f5c32296aebf22d752cc where
‘guix lint -c archival guile-wisp’ (for instance) would crash with a
match error because ‘lookup-by-nar-hash’ returns a string.
* guix/lint.scm (check-archival): Add SWHID case in the non-Git case.
Change-Id: I66fb060172d372041df47d90a14df168b0fa762d
---
guix/lint.scm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/guix/lint.scm b/guix/lint.scm
index 84df171045..ad84048660 100644
--- a/guix/lint.scm
+++ b/guix/lint.scm
@@ -1736,6 +1736,8 @@ Disarchive entry refers to non-existent SWH directory
'~a'")
(list id)
#:field 'source)))))))
((? content?)
+ '())
+ ((? string? swhid)
'())))
'()))
((? local-file?)
- branch master updated (d53ca79370 -> 2f441fc738), guix-commits, 2024/03/09
- 09/12: bzr-download: Implement nar fallback., guix-commits, 2024/03/09
- 12/12: download: Honor ‘GUIX_DOWNLOAD_METHODS’ environment variable., guix-commits, 2024/03/09
- 01/12: lint: Switch to SRFI-71., guix-commits, 2024/03/09
- 04/12: swh: Add ‘type’ field to <visit>., guix-commits, 2024/03/09
- 07/12: hg-download: Use ‘swh-download-directory-by-nar-hash’., guix-commits, 2024/03/09
- 10/12: download-nar: Distinguish ‘output’ and ‘item’ parameter., guix-commits, 2024/03/09
- 06/12: swh: ‘lookup-origin-revision’ handles branches pointing to directories., guix-commits, 2024/03/09
- 02/12: lint: archival: Fix crash in non-Git case.,
guix-commits <=
- 08/12: svn-download: Use ‘swh-download-directory-by-nar-hash’., guix-commits, 2024/03/09
- 05/12: swh: ‘origin-visits’ takes an optional ‘max’ parameter., guix-commits, 2024/03/09
- 03/12: lint: archival: Trigger “Save Code Now” for VCSes other than Git., guix-commits, 2024/03/09
- 11/12: perform-download: Allow use of ‘download-nar’ for ‘--check’ builds., guix-commits, 2024/03/09