From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id MD+7DEjIbmTCTAEASxT56A (envelope-from ) for ; Thu, 25 May 2023 04:30:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id MCOWDEjIbmROLAEA9RJhRA (envelope-from ) for ; Thu, 25 May 2023 04:30:32 +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 DDE651FCD3 for ; Thu, 25 May 2023 04:30:26 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q20jf-00069Z-7e; Wed, 24 May 2023 22:29:51 -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 1q20jd-00069N-Iw for guix-devel@gnu.org; Wed, 24 May 2023 22:29:49 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1q20jb-0002pG-HJ for guix-devel@gnu.org; Wed, 24 May 2023 22:29:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=xbY20qsqCDUJXt6 0PO66//T+WpjmRtEZkfP0y+7/F2I=; h=cc:to:subject:date:from:in-reply-to: references; d=lease-up.com; b=TMEnFwwNBDgzjTKLVB6/fSQSkA617FQYOyU63Qpw ycSfL2q2+2eJW1sgWJy3tBDUpM5j8LiRwIx0/6nHxjcsgZruoPgcKvNBwqrjLXDsSvHZtU OtGP79svJPR5twY0E74ZE6J59bMsfN89hPWrGyYhrGbsv02RbP96whXyDF9eo= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id 15b249e6 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO) for ; Thu, 25 May 2023 02:29:41 +0000 (UTC) Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-4f3b314b1d7so1708993e87.1 for ; Wed, 24 May 2023 19:29:41 -0700 (PDT) X-Gm-Message-State: AC+VfDxFVwbrrLV9iqI1lhV31s8n8kyxhK+8o87tE1zxdCwBE130GpdF Yj5ryBUjJsTOI4RU5GkIz8SsEt0ciE+1/Wh272M= X-Google-Smtp-Source: ACHHUZ7gNN2Y3ZQddvsbHyE+MDLSNuTcYsZKPwVEOtUjfJ4rhw1vlfqBiyp/q4HLEE8uzmioxpE2I/IEaC1tlpIDokA= X-Received: by 2002:ac2:4822:0:b0:4f3:dd90:f99d with SMTP id 2-20020ac24822000000b004f3dd90f99dmr3337814lft.61.1684981779170; Wed, 24 May 2023 19:29:39 -0700 (PDT) MIME-Version: 1.0 References: <87o7mcxrev.fsf@gmail.com> In-Reply-To: <87o7mcxrev.fsf@gmail.com> Date: Wed, 24 May 2023 19:29:02 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Understanding a Golang importer error To: Simon Tournier Cc: Guix Devel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=208.82.101.137; envelope-from=felix.lechner@lease-up.com; helo=sail-ipv4.us-core.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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Felix Lechner From: Felix Lechner via "Development of GNU Guix and the GNU System distribution." Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684981827; a=rsa-sha256; cv=none; b=nWwQb0Ks5pbK3ErtByUrnT1ovKc5reHhdV73pXRjoYF2qrC1kqHZNNbRZEktefLxKll35Z TjeQJpC/VoukACPhnb3sPBB5iK23LO2m7pKJcV8K2wCcAFq4dc2fPMel0Wyr9eR2uOqs8W 5AyCevtDONp0TUY3hBYKv3gsUXN5Bq9Ol5EnRKU5rKLBGjX4KHd3O72vZKOsnJXcK10vF/ k21SMe12EInLxftE1BZqzXKh3nUfijRoEQPRoHR96xJPOB3t2cOaRkMLS9sYP/dGW28hx1 Fr85gNZXyrurbgxd7oLP9lGX9dQgVsFgSU9ccK6Tc9fYPrDXgrPNgkk7Gw780Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=TMEnFwwN; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1684981827; 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-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=zOv47ea0euXKDQFZK3gLNzuc7kVvIMhwFMhoiXw/6Kg=; b=mnT6XEwde8UdcRcR4AbyV34cM8PPhCvZzGdHuu2vAxMDLj7bw8/85dQ9ErBhBacEOh1mvC F+QH64eiz+WkByQa8XGLuT0REdRzNiVJQbw8VgWLBqB17o3oPHDxJlDDLz3HsBy5YxSfCF Wnvs+Dg7dzXlY72LIHaGFNeXrFLwxTf86G4ZmsuF7uN1C/mzI1d7X8TSgO2oslcly2788Q mVUeVSCD2ykA3I6YY7cp5664sz9pRNbVNMDV5sPG/pUUB1qjFXJvtzie9yyhwCz3d7zf0A 0lbxo7Bfs+cyqlha2i0fku+nlpRXczXyLsvNkGHlevEWr7RZDtMXblIFuzz0lg== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=TMEnFwwN; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.97 X-Spam-Score: -1.97 X-Migadu-Queue-Id: DDE651FCD3 X-TUID: VUBgAoFx2seH Hi Simon, On Mon, May 22, 2023 at 10:02=E2=80=AFAM Simon Tournier wrote: > > Using submission #63647 [1], now it raises: > > --8<---------------cut here---------------start------------->8--- > $ ./pre-inst-env guix import go -r github.com/google/certificate-transpar= ency-go > guix import: warning: Git error: reference 'refs/tags/v0.41.1' not found = in https://github.com/open-telemetry/opentelemetry-go-contrib > guix import: warning: Git error: reference 'refs/tags/v2.305.9' not found= in https://github.com/etcd-io/etcd > following redirection to `https://github.com/bufbuild/protoc-gen-validate= ?go-get=3D1'... > guix import: warning: Git error: reference 'refs/tags/v1.9.1' not found i= n https://github.com/googleapis/google-cloud-go > guix import: warning: Git error: reference 'refs/tags/v1.14.0' not found = in https://github.com/googleapis/google-cloud-go > guix import: warning: Git error: reference 'refs/tags/v1.19.3' not found = in https://github.com/googleapis/google-cloud-go > --8<---------------cut here---------------end--------------->8--- > > Note that these warnings are non-blocking and thus a list of Guix > packages can be generated, although some are partial. Thank you so much! That patch takes the cake and probably deserves to become the accepted answer. I would find it more consistent, however, to pick a nearby version (or the newest version) and emit that package definition, instead. After all, Guix package variables do not care about versions, and neither do we. Guix and its contributors assume more or less throughout that nearby versions work fine. Why not here, too? We could also prompt the user of 'guix import' to select a tag. > Well, I do not know if we can do better. I mean, the issue seems about > a wrong packaging upstream. I mean, the tag v0.41.1 is reported as > metadata from goproxy (https://proxy.golang.org) but then the real Git > repository of the package does not contain it. There must be a convention that were are missing. The repositories contain hundreds and sometimes thousands of Git tags that look like file paths. The version number we recognize are at the very end. At the other end of the weirdness spectrum is the speculation by folks on #go-nuts that the missing tags were subsequently deleted. Do the versions perhaps come from the consuming go.mod files that spell out the version requirements? Kind regards, Felix