Re: Go modules help
- Reply: Larry Rosenman : "Re: Go modules help"
- In reply to: Matthias Fechner : "Re: Go modules help"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 17 Jan 2022 14:58:53 UTC
On 01/17/2022 8:50 am, Matthias Fechner wrote: > Dear Larry, > > Am 16.01.2022 um 21:19 schrieb Larry Rosenman: >> I'm trying to update thanos, and poudriere port test garners: >> ===> Building thanos from ./cmd/thanos >> vendor/cloud.google.com/go/storage/iam.go:20:2: cannot find package >> "." in: >> /wrkdirs/usr/ports/net-mgmt/thanos/work/thanos-0.24.0/vendor/cloud.google.com/go/iam >> vendor/cloud.google.com/go/storage/bucket.go:24:2: cannot find package >> "." in: >> /wrkdirs/usr/ports/net-mgmt/thanos/work/thanos-0.24.0/vendor/cloud.google.com/go/internal/optional >> vendor/cloud.google.com/go/storage/acl.go:22:2: cannot find package >> "." in: >> /wrkdirs/usr/ports/net-mgmt/thanos/work/thanos-0.24.0/vendor/cloud.google.com/go/internal/trace >> vendor/cloud.google.com/go/storage/storage.go:43:2: cannot find >> package "." in: >> /wrkdirs/usr/ports/net-mgmt/thanos/work/thanos-0.24.0/vendor/cloud.google.com/go/internal/version >> pkg/tracing/stackdriver/tracer.go:12:2: cannot find package "." in: >> /wrkdirs/usr/ports/net-mgmt/thanos/work/thanos-0.24.0/vendor/cloud.google.com/go/trace/apiv1 >> vendor/github.com/elastic/go-sysinfo/providers/darwin/os.go:26:2: >> cannot find package "." in: >> /wrkdirs/usr/ports/net-mgmt/thanos/work/thanos-0.24.0/vendor/howett.net/plist >> *** Error code 1 >> >> Makefile (as updated), attached. > > I think line 136 has a wrong path (in the last column), do you > generate this using modules2tuple? > googleapis:google-cloud-go:storage/v1.10.0:googleapis_google_cloud_go_storage > \ > > I think it should be something like: > > googleapis:google-cloud-go:storage/v1.10.0:googleapis_google_cloud_go_storage/vendor/google./golang.org/_unkown_ > \ > > the _unkown_ you must fill with the correct directory. > I think modules2tuple has problem if a tag has a / in it. > I see the same problems if the group has a / like if have it for some > gitlab depedencies. > I had to fix this all the time manually. > > Gruß > Matthias Yeah, it was generated with modules2tuple. Thanks for the hint. -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 214-642-9640 E-Mail: ler@lerctr.org US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106