From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id AGYdIoaSCGU8dQAAG6o9tA:P1 (envelope-from ) for ; Mon, 18 Sep 2023 20:10:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id AGYdIoaSCGU8dQAAG6o9tA (envelope-from ) for ; Mon, 18 Sep 2023 20:10:14 +0200 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 6EC3B530D8 for ; Mon, 18 Sep 2023 20:10:14 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=IpqtXwjB; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695060614; 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:dkim-signature; bh=xQSsVdSHcM3gwZqis4JCNsrNGnIhomgqrJxYnYdIMwE=; b=HgadfI+86WFcqeevoD2T/fO0ePo0b7jN0RyNvjnoZxqeYe3kJL5dLIHCxudIII+djOVRMY f5pONkBcZgk3YXvwhryacMWovsC0sajV3QBPPCEicebvpAzyC4pbzElECDZGtckDIoskx+ 8UuRi9bikeKjZpcsYYHtsyqI6FTnX3k9SwUI+7qHKEc16LuGrvZSJKr4douUrYSim+0/p6 FiM3K151uAkWLVjXfr3SWQZKtfu+hOWfszNYpKpMmi4dsu2t+niU2PpPgZhegykGHnGmsd yAjxdduyWcf1Xu4AWo32zIdNFSmPqZ/yz1sbW3q3DyeodlGfAy2UIfvmEIfCOQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695060614; a=rsa-sha256; cv=none; b=Q1PlekBs1yw4cuDy42yqAfa0reAmstWmVF1vM6S1YdYpfJ1f5L3kgBAfQ2X2E2EYeCYzm1 bWRPRjwn49WrNCISWzMJFciVv17pwPZ2tPUKPxWqoaf9i3vCCJagYSMyyXRBwQzYileyQm uzrFGhxk0Wa3y59WKYQ7jlkGSH1Tig3zyPC3ZFm6Ygs8J7xCsX9o0oEdLqF2MU8EUXFI/k KXLMXBcTnzHACA8opkZrm7S/jRxuQ7DBZw1t8dVCBPxifTOlPqVytah/G2VsJESlWslO00 G2XmBYL8fdW4xzCcQSYZXxjoaaZIsAgApNi+dJGKx5JrIVa7Pbi1vyw8bBBUBQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=IpqtXwjB; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qiId7-0004Sp-Fx; Mon, 18 Sep 2023 14:05:53 -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 1qiIcA-000391-JU for guix-patches@gnu.org; Mon, 18 Sep 2023 14:04:55 -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 1qiIcA-0003Xw-Av for guix-patches@gnu.org; Mon, 18 Sep 2023 14:04:54 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qiIcI-0002N3-3L for guix-patches@gnu.org; Mon, 18 Sep 2023 14:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62202] [PATCH v2 01/23] DRAFT guix: import: go: Add optional transform-version to vcs->origin. References: <871qlq89kz.fsf@ngraves.fr> In-Reply-To: <871qlq89kz.fsf@ngraves.fr> Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 18 Sep 2023 18:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62202 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch moreinfo To: 62202@debbugs.gnu.org Cc: Simon Tournier Received: via spool by 62202-submit@debbugs.gnu.org id=B62202.16950602428693 (code B ref 62202); Mon, 18 Sep 2023 18:05:02 +0000 Received: (at 62202) by debbugs.gnu.org; 18 Sep 2023 18:04:02 +0000 Received: from localhost ([127.0.0.1]:54353 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qiIbH-0002FL-H5 for submit@debbugs.gnu.org; Mon, 18 Sep 2023 14:04:02 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:37999) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qiIbB-0002EX-Lf for 62202@debbugs.gnu.org; Mon, 18 Sep 2023 14:03:58 -0400 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-40472fef044so9656235e9.0 for <62202@debbugs.gnu.org>; Mon, 18 Sep 2023 11:03:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695060219; x=1695665019; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=xQSsVdSHcM3gwZqis4JCNsrNGnIhomgqrJxYnYdIMwE=; b=IpqtXwjB0v2QIpnxx37e5315sU7ktUbEFMW1BRrpDNpIP5tlichxzKalXnriUAA13Z JgTBEnibi+YoIyDnfoCBNMcUGAGggj27WIXfxN7e/3fXWGKOjReztf+wgnQG/S1Fz/PK cycxg/oVu6DwU73FTkfyMB+1MUbFgTJMNMFKpTMDaBm07jvF41jENJ58WW06bdTZhuU5 0gX34HwwF1fjAncNwDrtlF0H4do98vhirNwl+3OyyDZ9SRvdht4s69mLPyJSb515tgCm P/3VG08GE1uDdJZB/MwnhGBnFOYrKj++euxJRDCQg9uhJd7OTLt/SvgI3pLc/kStNP2p 7CUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695060219; x=1695665019; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xQSsVdSHcM3gwZqis4JCNsrNGnIhomgqrJxYnYdIMwE=; b=RQYbdTtDoHXR3e4KSrYTAdkHcSgZV2H+gAYRfm90xso1Qjqztax9ybP0/aBZDybfDm MIwZovswliashh2mGGRyeAWmgiVTTEeugdCWV5tts546375Hf271THW+OjxQxjBQeUdu x8Rh7WVNw9svF3k7I3HuO8TqGwTZH0CqypQoUk/OheLZvAQLcg9/Y9cUO15bkF4VDS+P QJU6EadaMbn4SjL9Zauj7kfZZfeix4lsw2HoVyZ1FdstSejY4eiG5MevQ+L8eQXFbmjY f/QTLDFG/NEB1dBNcHQiSlrAvR0r0zr+QAEtxxWhOTLHp5W3nO6yjZArDcaBRUGijoax OZeA== X-Gm-Message-State: AOJu0YwwPRDHzdbNxrrcGp9fchC6YQpx/Yvo7JO2RqVUVR4hSuBEEagQ Gxb/6Yf6k13TH0wsyZWhDhORb9jjdBI= X-Google-Smtp-Source: AGHT+IEauQnItXNdOc2/qfBvH/IzvwxEwW0I8XNocueB1YuJeDtDzN+AUBT+opNTebdneMMpuue89g== X-Received: by 2002:adf:ec4f:0:b0:31f:a717:f1cc with SMTP id w15-20020adfec4f000000b0031fa717f1ccmr7643716wrn.5.1695060219326; Mon, 18 Sep 2023 11:03:39 -0700 (PDT) Received: from localhost.localdomain ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id z2-20020adfd0c2000000b0030ada01ca78sm2210465wrh.10.2023.09.18.11.03.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 11:03:38 -0700 (PDT) From: Simon Tournier Date: Mon, 18 Sep 2023 20:03:08 +0200 Message-Id: X-Mailer: git-send-email 2.39.2 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 6.25 X-Spam-Score: 6.25 X-Migadu-Queue-Id: 6EC3B530D8 X-Migadu-Scanner: mx0.migadu.com X-TUID: jfZsNSuV2uba --- guix/import/go.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/guix/import/go.scm b/guix/import/go.scm index 0357e6a1ebe7..d1c6f68d9c9a 100644 --- a/guix/import/go.scm +++ b/guix/import/go.scm @@ -513,7 +513,8 @@ (define* (git-checkout-hash url reference algorithm) `(tag-or-commit . ,reference))))) (file-hash* checkout #:algorithm algorithm #:recursive? #true))) -(define (vcs->origin vcs-type vcs-repo-url version) +(define* (vcs->origin vcs-type vcs-repo-url version + #:optional transform-version) "Generate the `origin' block of a package depending on what type of source control system is being used." (case vcs-type base-commit: 3d9ebc7b2ed24312fd6a0916c203f7b86d57753d -- 2.38.1