guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Understanding a Golang importer error


From: Simon Tournier
Subject: Re: Understanding a Golang importer error
Date: Mon, 22 May 2023 18:27:36 +0200

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]