unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Simon Tournier <zimon.toutoune@gmail.com>
To: Felix Lechner <felix.lechner@lease-up.com>,
	Guix Devel <guix-devel@gnu.org>
Subject: Re: Understanding a Golang importer error
Date: Mon, 22 May 2023 18:27:36 +0200	[thread overview]
Message-ID: <87o7mcxrev.fsf@gmail.com> (raw)
In-Reply-To: <CAFHYt57gGOJHD1ySpoDg0bf8r4OhRTjo=8Z7+Xz2_qvOFX-VnA@mail.gmail.com>

Hi,

On dim., 21 mai 2023 at 20:13, Felix Lechner via "Development of GNU Guix and the GNU System distribution." <guix-devel@gnu.org> wrote:

> produces the output below. Which repo is missing the v0.41.1 tag,
> please? Thanks!

Using submission #63647 [1], now it raises:

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix import go -r github.com/google/certificate-transparency-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=1'...
guix import: warning: Git error: reference 'refs/tags/v1.9.1' not found in 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.

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.

Other said, the importer first queries goproxy and get metadata.  This
lists available versions;  v0.41.1 is part of this list as reported by
the hint:

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix import go go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc@0.41

hint: Pick one of the following available versions: 0.42.0-rc.1 0.41.1 0.41.0-rc.2 0.41.0-rc.1 0.41.0 0.40.0 0.39.0 0.38.0 0.37.0 0.36.4 0.36.3 0.36.2 0.36.1
0.36.0 0.35.0 0.34.0 0.33.0 0.32.0 0.31.0 0.30.0 0.29.0 0.28.0 0.27.0 0.26.1 0.26.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0
0.16.0 0.15.1 0.15.0 0.14.0 0.13.0 0.12.0.
--8<---------------cut here---------------end--------------->8---

Second, the importer Git clone the repository.  You can access to the
cache (replace ’simon’ by your username on your machine :-))

--8<---------------cut here---------------start------------->8---
$ git -C /tmp/guix-import-go-simon/bpi2cmvczo24ns3r74zzxe3upjamzlo5t7c5cv4gwgcpld7jiw4a tag | grep v0.41.1
detectors/aws/lambda/v0.41.1
instrumentation/github.com/Shopify/sarama/otelsarama/example/v0.41.1
instrumentation/github.com/Shopify/sarama/otelsarama/test/v0.41.1
instrumentation/github.com/Shopify/sarama/otelsarama/v0.41.1
instrumentation/github.com/astaxie/beego/otelbeego/example/v0.41.1
instrumentation/github.com/astaxie/beego/otelbeego/test/v0.41.1
instrumentation/github.com/astaxie/beego/otelbeego/v0.41.1
instrumentation/github.com/aws/aws-lambda-go/otellambda/example/v0.41.1
instrumentation/github.com/aws/aws-lambda-go/otellambda/test/v0.41.1
instrumentation/github.com/aws/aws-lambda-go/otellambda/v0.41.1
instrumentation/github.com/aws/aws-lambda-go/otellambda/xrayconfig/v0.41.1
instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/example/v0.41.1
instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/test/v0.41.1
instrumentation/github.com/aws/aws-sdk-go-v2/otelaws/v0.41.1
instrumentation/github.com/bradfitz/gomemcache/memcache/otelmemcache/example/v0.41.1
instrumentation/github.com/bradfitz/gomemcache/memcache/otelmemcache/test/v0.41.1
instrumentation/github.com/bradfitz/gomemcache/memcache/otelmemcache/v0.41.1
instrumentation/github.com/emicklei/go-restful/otelrestful/example/v0.41.1
instrumentation/github.com/emicklei/go-restful/otelrestful/test/v0.41.1
instrumentation/github.com/emicklei/go-restful/otelrestful/v0.41.1
instrumentation/github.com/gin-gonic/gin/otelgin/example/v0.41.1
instrumentation/github.com/gin-gonic/gin/otelgin/test/v0.41.1
instrumentation/github.com/gin-gonic/gin/otelgin/v0.41.1
instrumentation/github.com/go-kit/kit/otelkit/example/v0.41.1
instrumentation/github.com/go-kit/kit/otelkit/test/v0.41.1
instrumentation/github.com/go-kit/kit/otelkit/v0.41.1
instrumentation/github.com/gocql/gocql/otelgocql/example/v0.41.1
instrumentation/github.com/gocql/gocql/otelgocql/test/v0.41.1
instrumentation/github.com/gocql/gocql/otelgocql/v0.41.1
instrumentation/github.com/gorilla/mux/otelmux/example/v0.41.1
instrumentation/github.com/gorilla/mux/otelmux/test/v0.41.1
instrumentation/github.com/gorilla/mux/otelmux/v0.41.1
instrumentation/github.com/labstack/echo/otelecho/example/v0.41.1
instrumentation/github.com/labstack/echo/otelecho/test/v0.41.1
instrumentation/github.com/labstack/echo/otelecho/v0.41.1
instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/test/v0.41.1
instrumentation/go.mongodb.org/mongo-driver/mongo/otelmongo/v0.41.1
instrumentation/google.golang.org/grpc/otelgrpc/example/v0.41.1
instrumentation/google.golang.org/grpc/otelgrpc/test/v0.41.1
instrumentation/google.golang.org/grpc/otelgrpc/v0.41.1
instrumentation/gopkg.in/macaron.v1/otelmacaron/example/v0.41.1
instrumentation/gopkg.in/macaron.v1/otelmacaron/test/v0.41.1
instrumentation/gopkg.in/macaron.v1/otelmacaron/v0.41.1
instrumentation/host/example/v0.41.1
instrumentation/host/v0.41.1
instrumentation/net/http/httptrace/otelhttptrace/example/v0.41.1
instrumentation/net/http/httptrace/otelhttptrace/test/v0.41.1
instrumentation/net/http/httptrace/otelhttptrace/v0.41.1
instrumentation/net/http/otelhttp/example/v0.41.1
instrumentation/net/http/otelhttp/test/v0.41.1
instrumentation/net/http/otelhttp/v0.41.1
instrumentation/runtime/example/v0.41.1
instrumentation/runtime/v0.41.1
propagators/autoprop/v0.41.1
propagators/opencensus/examples/v0.41.1
propagators/opencensus/v0.41.1
zpages/v0.41.1
--8<---------------cut here---------------end--------------->8---

Well, I do not know if there are conventions in the Go ecosystem that
points to other tags.  For sure, some tags are there as expected and
then after v0.24, no.

--8<---------------cut here---------------start------------->8---
$ git -C /tmp/guix-import-go-simon/bpi2cmvczo24ns3r74zzxe3upjamzlo5t7c5cv4gwgcpld7jiw4a tag | grep ^v
v0.10.0
v0.10.1
v0.11.0
v0.12.0
v0.13.0
v0.14.0
v0.15.0
v0.15.1
v0.16.0
v0.17.0
v0.18.0
v0.19.0
v0.20.0
v0.21.0
v0.22.0
v0.23.0
v0.24.0
v0.6.0
v0.6.1
v0.7.0
v0.8.0
v0.9.0
v1.0.0
v1.1.0
v1.1.1
v1.10.0
v1.11.0
v1.11.1
v1.12.0
v1.13.0
v1.14.0
v1.15.0
v1.16.0
v1.16.0-rc.1
v1.16.0-rc.2
v1.16.1
v1.17.0-rc.1
v1.2.0
v1.3.0
v1.4.0
v1.5.0
v1.6.0
v1.7.0
v1.8.0
v1.9.0
--8<---------------cut here---------------end--------------->8---


1: <https://issues.guix.gnu.org/issue/63647>


Cheers,
simon


  parent reply	other threads:[~2023-05-22 17:02 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-22  3:13 Understanding a Golang importer error Felix Lechner via Development of GNU Guix and the GNU System distribution.
2023-05-22  6:38 ` Csepp
2023-05-22 14:44 ` Attila Lendvai
2023-05-22 16:27 ` Simon Tournier [this message]
2023-05-25  2:29   ` Felix Lechner via Development of GNU Guix and the GNU System distribution.
2023-05-25 14:09     ` Simon Tournier
2023-05-25 16:02       ` Simon Tournier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o7mcxrev.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=felix.lechner@lease-up.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).