[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
26/26: channels: Raise an error if dependency's introduction is malforme
From: |
guix-commits |
Subject: |
26/26: channels: Raise an error if dependency's introduction is malformed |
Date: |
Sun, 4 Jun 2023 05:38:34 -0400 (EDT) |
jpoiret pushed a commit to branch master
in repository guix.
commit cacc0cb6ab22218a3783a51ba9986405ede4e0d8
Author: Josselin Poiret <dev@jpoiret.xyz>
AuthorDate: Sun Mar 5 11:56:09 2023 +0100
channels: Raise an error if dependency's introduction is malformed
* guix/channels.scm (sexp->channel-introduction): Do it.
---
guix/channels.scm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/guix/channels.scm b/guix/channels.scm
index 1ff72b7e72..681adafc6c 100644
--- a/guix/channels.scm
+++ b/guix/channels.scm
@@ -252,7 +252,14 @@ could be found at DIRECTORY or one of its ancestors."
('commit commit) ('signer signer)
_ ...)
(make-channel-introduction commit (openpgp-fingerprint signer)))
- (x #f)))
+ (x (raise (condition
+ (&message
+ (message (format #f (G_ "channel dependency has an invalid\
+ introduction field"))))
+ (&error-location
+ (location
+ (source-properties->location
+ (source-properties x)))))))))
(define (read-channel-metadata port)
"Read from PORT channel metadata in the format expected for the
- branch master updated (65bce4d9f9 -> cacc0cb6ab), guix-commits, 2023/06/04
- 01/26: services: screen-locker-service-type: Configurable PAM and setuid., guix-commits, 2023/06/04
- 05/26: gnu: sbsigntools: Update to 0.9.5., guix-commits, 2023/06/04
- 13/26: gnu: Add ghc-vector-hashtables., guix-commits, 2023/06/04
- 07/26: records: match-record: Support thunked and delayed fields., guix-commits, 2023/06/04
- 08/26: dir-locals: Fix MATCH-RECORD indentation., guix-commits, 2023/06/04
- 09/26: records: Add MATCH-RECORD-LAMBDA., guix-commits, 2023/06/04
- 20/26: build-system: New agda-build-system., guix-commits, 2023/06/04
- 11/26: tests: records: Add test for ellipsis in body., guix-commits, 2023/06/04
- 12/26: gnu: Add ghc-peano., guix-commits, 2023/06/04
- 26/26: channels: Raise an error if dependency's introduction is malformed,
guix-commits <=
- 04/26: gnu: proot: Update to 5.4.0 and fix clone3 behavior., guix-commits, 2023/06/04
- 02/26: gnu: heimdal: Run autoreconf., guix-commits, 2023/06/04
- 03/26: gnu: heimdal: Drop obsolete and insecure user tools., guix-commits, 2023/06/04
- 06/26: records: match-record: Raise a syntax error if TYPE is nonexistent., guix-commits, 2023/06/04
- 10/26: records: match-record: Do not show internal form., guix-commits, 2023/06/04
- 14/26: gnu: agda: Update to 2.6.3 and switch to git-fetch., guix-commits, 2023/06/04
- 16/26: gnu: emacs-agda2-mode: No longer inherit from agda., guix-commits, 2023/06/04
- 17/26: gnu: emacs-agda2-mode: Switch to G-Exps., guix-commits, 2023/06/04
- 18/26: gnu: agda: Add AGDA_LIBDIRS search-path., guix-commits, 2023/06/04
- 19/26: build-system/haskell: Export default-haskell., guix-commits, 2023/06/04