From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id uFzEJkwaiGaKOAAAqHPOHw:P1 (envelope-from ) for ; Fri, 05 Jul 2024 16:07:40 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id uFzEJkwaiGaKOAAAqHPOHw (envelope-from ) for ; Fri, 05 Jul 2024 18:07:40 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720195660; h=from:from:sender:sender: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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=L2Hdphg3kCalnjUTZh0Bg+vadAUe/w9OS3uK76DyWw8=; b=L69nUd11Dpqa5JOnIZQxc3z2r1NXbDu/0z1gfFn0rBik/5aei0gW0UxHj1BbtD5DKDF65F 4lAacVWzdnq3R6XLdIsE2ILQTIZYWcqoKCjkRYc5d7Gw5vO3dL5eYxmiw3Q2dCNBIzQV5Q v+Gxe4dY0vYIN4huVl7u+C0PTjxvRs4ViQjSbF7rN+PV05BsrEdDaSQqW8F70KcXxTbFMD IbdHPYD8T5/lrZYBfnxB+9PyWMEXUoiirQyns078g4oaysyL4vLtll7djt866s4Yc+tZgM juZC4qYZ2pfJ+TgCmHnHmsOmECe8AQQO+59fSN/Lw4DjpoIIu+zoGcjH56TG8A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720195660; a=rsa-sha256; cv=none; b=TRMtqlv+zlE8zdcLmyu7RwKA+7Zc8gx3i+RkaxfwkGGYtCyToRw2tsPSrkEmcf7jlnnSrU cVA2lx2QfKdYgDcJ3ERUMx0uL3eOt/6s4wzxwINiuAa4ojvq0lguUBww37ChFpw3l18zcG 0wQjMcPzYF9vfRQ10Ss4kktkxFOyi3WMkmTo9eXzJjm2xknlFvrmj90Ff3nFlm7FLtgxAq rojS6iBQV2TGbsnkodXmBtTIY8z7NVpox+4uhpYEvnoeeaAXfnxiSa2Hg5RF7W+kD/XmXM xAPIXUVlaBcloShvixsN3U5Vzfn/lOjfyQRHWBVRJ6sU2742cvJGszS/wclDHQ== 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 874857E380 for ; Fri, 5 Jul 2024 18:07:40 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sPlSf-0005eG-MW; Fri, 05 Jul 2024 12:07:01 -0400 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 1sPlSe-0005dp-2N for guix-patches@gnu.org; Fri, 05 Jul 2024 12:07:00 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sPlSd-00043w-QA for guix-patches@gnu.org; Fri, 05 Jul 2024 12:06:59 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sPlSg-0003OP-Of; Fri, 05 Jul 2024 12:07:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70985] [PATCH v2 6/6] build-system: go: Properly handle when a target is unsupported. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: cox.katherine.e+guix@gmail.com, sharlatanus@gmail.com, guix-patches@gnu.org Resent-Date: Fri, 05 Jul 2024 16:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70985 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70985@debbugs.gnu.org Cc: Katherine Cox-Buday , Sharlatan Hellseher X-Debbugs-Original-Xcc: Katherine Cox-Buday , Sharlatan Hellseher Received: via spool by 70985-submit@debbugs.gnu.org id=B70985.172019557612921 (code B ref 70985); Fri, 05 Jul 2024 16:07:02 +0000 Received: (at 70985) by debbugs.gnu.org; 5 Jul 2024 16:06:16 +0000 Received: from localhost ([127.0.0.1]:44843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPlRv-0003MG-Uh for submit@debbugs.gnu.org; Fri, 05 Jul 2024 12:06:16 -0400 Received: from mira.cbaines.net ([212.71.252.8]:43910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sPlRu-0003M6-C1 for 70985@debbugs.gnu.org; Fri, 05 Jul 2024 12:06:14 -0400 Received: from localhost (nat-inria-guest-32-gw-01-bso.bordeaux.inria.fr [194.199.1.32]) by mira.cbaines.net (Postfix) with ESMTPSA id 62B6227BBED for <70985@debbugs.gnu.org>; Fri, 5 Jul 2024 17:06:07 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 68b68a3c for <70985@debbugs.gnu.org>; Fri, 5 Jul 2024 16:06:05 +0000 (UTC) From: Christopher Baines Date: Fri, 5 Jul 2024 18:06:03 +0200 Message-ID: <16cfdbf20bb508ae12cdba675467a727ba7c1e6b.1720195563.git.mail@cbaines.net> X-Mailer: git-send-email 2.45.2 In-Reply-To: <9f11c96f25ba0f8f0c63ad3d6f5d6295035e7cc7.1720195563.git.mail@cbaines.net> References: <9f11c96f25ba0f8f0c63ad3d6f5d6295035e7cc7.1720195563.git.mail@cbaines.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -4.89 X-Migadu-Queue-Id: 874857E380 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -4.89 X-TUID: PKNSFmnlZQMa * guix/build-system/go.scm (go-target): Properly handle when a target is unsupported. Change-Id: Ibc0becb8eb0a712d21116112c44e2bbbb707ddf4 --- guix/build-system/go.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/guix/build-system/go.scm b/guix/build-system/go.scm index 0934fded07..fc53b3be9f 100644 --- a/guix/build-system/go.scm +++ b/guix/build-system/go.scm @@ -33,6 +33,8 @@ (define-module (guix build-system go) #:use-module (ice-9 match) #:use-module (ice-9 regex) #:use-module (srfi srfi-1) + #:use-module (srfi srfi-34) + #:use-module (srfi srfi-35) #:export (%go-build-system-modules go-build go-build-system @@ -101,7 +103,13 @@ (define (go-target target) (_ arch)) (match os ((or "mingw32" "cygwin") "windows") - (_ os)))))) + (_ os)))) + (_ + (raise + (condition + (&unsupported-cross-compilation-target-error + (build-system go-build-system) + (target target))))))) (define %go-build-system-modules ;; Build-side modules imported and used by default. -- 2.45.2