From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id PFfAIo51BGRSAgAAbAwnHQ (envelope-from ) for ; Sun, 05 Mar 2023 11:57:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yG6nIY51BGQLCQEAG6o9tA (envelope-from ) for ; Sun, 05 Mar 2023 11:57:18 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 58169158D2 for ; Sun, 5 Mar 2023 11:57:18 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b="fQkPX/id"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678013838; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=JOpP7+pNfocM+n84MOV5dwBuavhS2IUmTE3PzMowikI=; b=UQgpNlaWZZ1E51t9b6MaRVX41aClQfysgccfMScKYo9+Rzsfo9m5ZkoP/o64FxHp+D0OFy XL1McbeZoC5IDEG1ahc+DAGFof1oHqWH93lvoZGwepKqGPsnQUQJZm5OFO74uvzM0/NPPb /z6NeIeN82o0ESin5ea814HU91jTGRZTc2+8WumBO1P8L51yYKAWfXa0o6CGkQXjBXOewP TtPa9xCSZ5x68glY7DYF+H42z6/53aoWfirbkV9hzC7LHBjlGJJ3NiTJafyl65WbzAYFLN ggT+ib55Y6LY4a3StA6jPKZrqrByJB5FBLw4X0pfdsG9F4BpvQBpJ1ZJSeB5Zg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=jpoiret.xyz header.s=dkim header.b="fQkPX/id"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678013838; a=rsa-sha256; cv=none; b=MfP6YUGMusD8bT7XABMReccZaYIhaq3cSrbI+2aSR7fjil53lmqIKy0dzmuTdstHQIYqtk fiaaaAepHCYa8vxFagLCuih1MWoMLbOqX2hkPSWmPiYc98W1w3Lmm9lRlJsIgQvyOzCu2Z U3TYNMntB/DPRnCLjMsfy2LmKBgNO3ZplOvh7j4glEwaovlh+6CImUjhvugQA2GQUwXhVd P+ssiUhyBqSxpK97SD/gLyRwlJkshzbAHDZF/JAS+Q3wOrqeohvHZAs0z451yK64ujsoqX UmyoQ5s55rtzRj4UIw65f/RUo4eQbE5178uChZT6kY3APfxxRzKADGU2HyMqTg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYm36-0006Fq-78; Sun, 05 Mar 2023 05:57:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYm34-0006FR-RN for guix-patches@gnu.org; Sun, 05 Mar 2023 05:57:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pYm34-0007Y9-IX for guix-patches@gnu.org; Sun, 05 Mar 2023 05:57:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pYm34-0002MR-En for guix-patches@gnu.org; Sun, 05 Mar 2023 05:57:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61977] [PATCH] channels: Raise an error if dependency's introduction is malformed Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 05 Mar 2023 10:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61977 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61977@debbugs.gnu.org Cc: Josselin Poiret X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16780138109051 (code B ref -1); Sun, 05 Mar 2023 10:57:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 Mar 2023 10:56:50 +0000 Received: from localhost ([127.0.0.1]:38608 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYm2r-0002Lv-SO for submit@debbugs.gnu.org; Sun, 05 Mar 2023 05:56:50 -0500 Received: from lists.gnu.org ([209.51.188.17]:35362) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYm2q-0002Ln-DY for submit@debbugs.gnu.org; Sun, 05 Mar 2023 05:56:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYm2q-000689-71 for guix-patches@gnu.org; Sun, 05 Mar 2023 05:56:48 -0500 Received: from jpoiret.xyz ([206.189.101.64]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYm2o-0007Ve-Nw for guix-patches@gnu.org; Sun, 05 Mar 2023 05:56:47 -0500 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id C5EEC18530D; Sun, 5 Mar 2023 10:56:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1678013803; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=JOpP7+pNfocM+n84MOV5dwBuavhS2IUmTE3PzMowikI=; b=fQkPX/idY3cRO62/5t0HPkOiKCh+Ysdn7vFEeMVkfqU6NOuE3u09B4r5y7zXODBJ83QI6v Tv/0GRThrUIXntL6HaMOeJ1en7odJMSVb+DXQkGqluLyG+ccJUGzWpCCUGPxy5Z6YObmLV RlhT9ivaqrtrh96C48X7DWlguIG+0fHwFLhGllAKq05GCSJYOy45flLJOIU3EnKPBGCoOc M6RgQJtYy8lkz5UFzu3SawkZOdZUdLkpleQ27VuCTgcfM/LSqRRYfMURDP7Wnti1m0RO4r 7IKPmQSsMwEomy2pCdbrIzr6Nheis/1NXS+2HJ+YAeftBLAmHO3/+xdq/Wl1fg== Date: Sun, 5 Mar 2023 11:56:09 +0100 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: ++++ Received-SPF: pass client-ip=206.189.101.64; envelope-from=dev@jpoiret.xyz; helo=jpoiret.xyz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Josselin Poiret X-ACL-Warn: , Josselin Poiret via Guix-patches X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: 58169158D2 X-Spam-Score: -2.71 X-Migadu-Spam-Score: -2.71 From: Josselin Poiret via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-TUID: 9m2ERuevnvWu * 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 d44e7a0a3a..fc2bf55d65 100644 --- a/guix/channels.scm +++ b/guix/channels.scm @@ -256,7 +256,14 @@ (define sexp->channel-introduction ('commit commit) ('signer signer) _ ...) (make-channel-introduction commit (openpgp-fingerprint signer))) - (x #f))) + (x (raise (condition + (&message + (message (format #f "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 base-commit: 2799ad44234be675f018115f99be98d2c9fd565d -- 2.39.1