From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 0F6UGWTWQGc3jQAA62LTzQ:P1 (envelope-from ) for ; Fri, 22 Nov 2024 19:07:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 0F6UGWTWQGc3jQAA62LTzQ (envelope-from ) for ; Fri, 22 Nov 2024 20:07:16 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=ne5p765Z; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=DWvG06zL; dmarc=fail reason="SPF not aligned (relaxed), DKIM 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-Seal: i=1; s=key1; d=yhetil.org; t=1732302436; a=rsa-sha256; cv=none; b=Mzdxt6NzfiS6Hcrck0I1Ei7oK8No7uU6SEGAUNfLhwpgA6xwsZ+T/ZGajloyWjVL2Ts5t/ SffB0wFek6q1BMMaKYTkrXc7FFIOCDTCXrZCy8XCw2SPaKPJU8sT/rVei022XcryWMbKQQ EKh7VgGY0ZuwS2VSv0/4OLg3OsTi7D7asFGafQ3c1VQkoJcd3bBsH7H+CzM1NydXsYOzpX +oR85SQ0KvuKpWaT/t4zfBerlj0laHgYilB/eFC179wB1urvLRcdVBW3FLoZFUNrDCkJdg h33/327wSbKXw/bOOEk4Q50sfCtLa3N7w24/OZ/LXWH3yfaIS70D4ydy4Ajpmw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=ne5p765Z; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=DWvG06zL; dmarc=fail reason="SPF not aligned (relaxed), DKIM 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=1732302436; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=rUMaYOPxeUR1Vp3Nlw0/jWuet+MnhcR7Bx44/04K7OM=; b=np/lAnt5wNXQJBrSHyIisJ/K12NWnN847HmD5T/iVvuXnNCi3PKV49/tpmnBBkGXqk7J3D wekWSRpAfTV+Jn8R8QzgfxWG0uHlN+v9D0qMhrZFDFt+QIIdKkNOyfIYTk+v6flQO/oqPk v0firdcKFPt2GKi74p1y+2pJBpN/fg+4z5d2gduekXjheXgi7E9lRdwXYMqmUs/mSnw/Sf eUvb8PHtyjtT3FQlu4HTgBASKAgQPtX+gAmexLjszeDUha6KPzF9+Yw5Gv3NWwvmEul5yD yVNg1EnZXe8WoQ9DzVwC3aRbDDc8dYrQF+RG6l5Oua03vu45fhQ7TcKc20cIBw== 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 102CE7AF5F for ; Fri, 22 Nov 2024 20:07:16 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tEYzg-0006cE-WA; Fri, 22 Nov 2024 14:07:05 -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 1tEYzf-0006aj-My for guix-patches@gnu.org; Fri, 22 Nov 2024 14:07:03 -0500 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 1tEYzf-0006O8-Dg for guix-patches@gnu.org; Fri, 22 Nov 2024 14:07:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=rUMaYOPxeUR1Vp3Nlw0/jWuet+MnhcR7Bx44/04K7OM=; b=ne5p765Z72ABCOcWk1+GFK2samr0sBJYw65nlvZvoCvzcdVvaFcwBhY0fTnRvNyrnf3ugathm+71Tfs+sKP2/1yJJujLqCO6ueOjMh/2XccxCogWpGoR+WrPAsPMtJt8UjPmemr55wdAufu3BptxxcZdCR/h3v1a6bKu9GuupHjeyOoEC0sd0vLNAbf/DENP1pU9Z0UFUadfPypw+Oq+N8ulo8exR874PJrB6Bj2j2OvXJN5YL5sGRnIwlyReElwSCMDvuq/NU9KuTck8GdW9W5xiDRcmm6IAGKpcNJ1hF5/CuvW10OHKoSV3wLMdFnJVBIKmdzfuosdHOGNF9xGwA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tEYze-0002vN-6c; Fri, 22 Nov 2024 14:07:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74481] [PATCH 0/2] Handle corner cases of 'guix import go' Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: cox.katherine.e+guix@gmail.com, sharlatanus@gmail.com, guix-patches@gnu.org Resent-Date: Fri, 22 Nov 2024 19:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74481 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74481@debbugs.gnu.org Cc: Simon Tournier , Katherine Cox-Buday , Sharlatan Hellseher X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Katherine Cox-Buday , Sharlatan Hellseher Received: via spool by submit@debbugs.gnu.org id=B.173230237411145 (code B ref -1); Fri, 22 Nov 2024 19:07:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 Nov 2024 19:06:14 +0000 Received: from localhost ([127.0.0.1]:55530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEYyr-0002tg-At for submit@debbugs.gnu.org; Fri, 22 Nov 2024 14:06:13 -0500 Received: from lists.gnu.org ([209.51.188.17]:52746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEYyp-0002tS-9j for submit@debbugs.gnu.org; Fri, 22 Nov 2024 14:06:12 -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 1tEYyo-0006HY-Pj for guix-patches@gnu.org; Fri, 22 Nov 2024 14:06:10 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tEYym-0006L6-Qr for guix-patches@gnu.org; Fri, 22 Nov 2024 14:06:10 -0500 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-43167ff0f91so21520075e9.1 for ; Fri, 22 Nov 2024 11:06:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732302366; x=1732907166; darn=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=rUMaYOPxeUR1Vp3Nlw0/jWuet+MnhcR7Bx44/04K7OM=; b=DWvG06zLNQQWOwJLAk4x9FgS3MMNXzuKY5rAHMeHeVdDVFarM/SYF+Mcq6o+wQqO6W 9ualVKpKHJMz4Azkhn0Ibyd5XXj39cbBuf/HAFizBqPwvk2GkzJJZs4RdTLRDRHfxBsG F5Jyv5sUyqWssPE9iYGTMD/26Om5FNxIFlxPtDtG1ThAc/+xN4dutR3iX+gJP2/k9d5p xy+u/Lh4OB/X85DzKWEk5OGAAetm0U1pUdOUeLH6c++Rw9z7yhBlzviYcj9KXB9j/UMS euLoFFVqPFnhIZWnLFNsfN5Gh16XV99fqbDc8kt+RHdEgrkeTNIhGuIoPNzu4VDMGtNU iqxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732302366; x=1732907166; 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=rUMaYOPxeUR1Vp3Nlw0/jWuet+MnhcR7Bx44/04K7OM=; b=Ff1ZHl7twifOxsUY63Sh33tbKPVOdUSXYx+OJ/nklc1gjqcw2zJn8Ek39J4QPNlORL USVZ726O/3tdVwPW1YuDIa0YU4BdfK0God54K56xpwuyC4DKSEHf/0v9lI8f13f9d1hU EpHWV8oHxMjvYrSjXkw2s/5x435YT+yky3tBwzKUJyf5/s7ow4upKk0wVZ3tS2o4zsIj z0rfateIKuRnbBEGLyNG4TkOli4QB5zF5zl1qTenq2dPyOnqzeS+9ywemV5u0glX0k8f Ws6U46OP/klIdKWAy6RwrhiqpnglxHnWRCxkxDZr9YdBUkhftIen+lWUnCIDkcOOQ+YV s3/A== X-Gm-Message-State: AOJu0YxSykSeM3jzPjA3UwR0VhBcAlrsfmyqfdvp2figLy/6q6DMDEBl ZNKD6k6d898oLIAQGbLkaeGqQQm2OazmJ5UxPSJjG+yVSq1LrhqJV3Ar1Q== X-Gm-Gg: ASbGncvd4xSY5QDJQ1JP+X8WJ9rER0WFqSeek0LZLBYLBFRWUdM5BSkIWPLMyQ8xFZn tKyM6Ogf9+DT+aDb/CAB9OXra+CS3caNmigHHhCZ1gi3NunTyS5NjAfL4PM+3/pPj5P2dRipSoR 42UJ9NkJZq2cWSNhfYhhbEKNwGEqO9NP9YLKhd71pXnIlVSrNekKIJYsmfb402CxLWKwyuiVzTH L2WC/Cx8+a3V/1y88CP0dBw/recOHkdS/LCBkuT84VezTqQjRqDSs1ZftK1R1WUCJbE X-Google-Smtp-Source: AGHT+IHqkuEba8VKEq05j6D10wV3DmPnY+tyCxWy+yOmRFdVulIwfSi1adugoZPJhr79/rbOZF5wyg== X-Received: by 2002:a05:600c:5102:b0:42f:8515:e490 with SMTP id 5b1f17b1804b1-433ce4108dfmr33708465e9.5.1732302366179; Fri, 22 Nov 2024 11:06:06 -0800 (PST) Received: from localhost.localdomain ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-433b01e1188sm105085895e9.1.2024.11.22.11.06.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Nov 2024 11:06:05 -0800 (PST) From: Simon Tournier Date: Fri, 22 Nov 2024 20:05:57 +0100 Message-ID: X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x32a.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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: , 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-Migadu-Spam-Score: 0.13 X-Spam-Score: 0.13 X-Migadu-Queue-Id: 102CE7AF5F X-Migadu-Scanner: mx10.migadu.com X-TUID: LlCLzuPgzU/P Hi, Instead of that: --8<---------------cut here---------------start------------->8--- $ guix import go software.sslmate.com/src/go-pkcs12 guix import: Importing package "software.sslmate.com/src/go-pkcs12"... guix import: warning: Unable to determine repository root of 'software.sslmate.com/src/go-pkcs12'. Guessing 'software.sslmate.com/src/go-pkcs12'. SWH: found revision fa70679f0f1622a2705336a97225ee8d6c555f96 with directory at 'https://archive.softwareheritage.org/api/1/directory/43d3e9f7167cdcd9f179e8d1de33d0d22e8fbd46/' swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/ swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/HEAD swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/branches/ swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/config swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/description swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/hooks/ swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/info/ swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/info/exclude swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/info/refs swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/objects/ swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/objects/info/ swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/objects/info/packs swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/objects/pack/ swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/objects/pack/pack-19cac523aaea8e45710dd5cc36bbee1ecc68369c.idx swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/objects/pack/pack-19cac523aaea8e45710dd5cc36bbee1ecc68369c.pack swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/refs/ swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/refs/heads/ swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/refs/heads/master swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/refs/tags/ guix import: warning: Backtrace: In ice-9/boot-9.scm: 1752:10 12 (with-exception-handler _ _ #:unwind? _ # _) In unknown file: 11 (apply-smob/0 #) In ice-9/boot-9.scm: 724:2 10 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 9 (_ #(#(#))) In guix/ui.scm: 2330:7 8 (run-guix . _) 2293:10 7 (run-guix-command _ . _) In guix/scripts/import.scm: 82:6 6 (guix-import . _) In ice-9/boot-9.scm: 1752:10 5 (with-exception-handler _ _ #:unwind? _ # _) In guix/scripts/import/go.scm: 116:29 4 (_) In ice-9/eval.scm: 619:8 3 (_ #(#(# # ?) ?)) 174:20 2 (_ #(#(# # ?) ?)) 177:32 1 (lp (#)) In ice-9/boot-9.scm: 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: In procedure git-error-message: Wrong type argument: #<&compound-exception components: (#<&error> #<&irritants irritants: (#< code: -3 message: "reference 'refs/tags/v0.5.0' not found" class: 4>)> #<&exception-with-kind-and-args kind: git-error args: (#< code: -3 message: "reference 'refs/tags/v0.5.0' not found" class: 4>)>)> --8<---------------cut here---------------end--------------->8--- which is annoying because it is blocking when using the importer recursively, the patch set produces that: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix import go software.sslmate.com/src/go-pkcs12 guix import: Importing package "software.sslmate.com/src/go-pkcs12"... guix import: warning: Unable to determine repository root of 'software.sslmate.com/src/go-pkcs12'. Guessing 'software.sslmate.com/src/go-pkcs12'. SWH: found revision fa70679f0f1622a2705336a97225ee8d6c555f96 with directory at 'https://archive.softwareheritage.org/api/1/directory/43d3e9f7167cdcd9f179e8d1de33d0d22e8fbd46/' swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/ swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/HEAD swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/branches/ swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/config swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/description swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/hooks/ swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/info/ swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/info/exclude swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/info/refs swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/objects/ swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/objects/info/ swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/objects/info/packs swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/objects/pack/ swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/objects/pack/pack-19cac523aaea8e45710dd5cc36bbee1ecc68369c.idx swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/objects/pack/pack-19cac523aaea8e45710dd5cc36bbee1ecc68369c.pack swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/refs/ swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/refs/heads/ swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/refs/heads/master swh:1:rev:fa70679f0f1622a2705336a97225ee8d6c555f96.git/refs/tags/ guix import: warning: Git cannot find the reference v0.5.0 (define-public go-software-sslmate-com-src-go-pkcs12 (package (name "go-software-sslmate-com-src-go-pkcs12") (version "0.5.0") (source (origin (method git-fetch) (uri (git-reference (url "https://software.sslmate.com/src/go-pkcs12.git") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0000000000000000000000000000000000000000000000000000")))) (build-system go-build-system) (arguments (list #:import-path "software.sslmate.com/src/go-pkcs12")) (home-page "https://software.sslmate.com/src/go-pkcs12") (synopsis "package pkcs12") (description "Package pkcs12 implements some of PKCS#12 (also known as P12 or PFX). It is intended for decoding DER-encoded P12/PFX files for use with the crypto/tls package, and for encoding P12/PFX files for use by legacy applications which do not support newer formats. Since PKCS#12 uses weak encryption primitives, it SHOULD NOT be used for new applications.") (license license:bsd-3))) --8<---------------cut here---------------end--------------->8--- Please double check because it tweaks 'update-cached-checkout' which is used by "guix pull". :-) Cheers, simon Simon Tournier (2): git: Catch Git errors when updating cached checkout. import: go: Warn instead of error out when reference is missing. guix/git.scm | 128 ++++++++++++++++++++++++++------------------- guix/import/go.scm | 10 ++-- 2 files changed, 82 insertions(+), 56 deletions(-) base-commit: 043f02462766a913080723ad286028a288b79373 -- 2.46.0