Re: Go modules help

From: Larry Rosenman <ler_at_lerctr.org>
Date: Mon, 17 Jan 2022 17:44:29 UTC
On 01/17/2022 11:35 am, Matthias Fechner wrote:
> Am 17.01.2022 um 17:46 schrieb Larry Rosenman:
>> Progress, but I'm now getting:
>> => SHA256 Checksum OK for 
>> go-plist-591f970eefbbeb04d7b37f334a0c4c3256e32876_GL0.tar.gz.
>> /bin/rm -f -r 
>> /wrkdirs/usr/ports/net-mgmt/thanos/work/thanos-0.24.0/vendor/cloud.google.com/go/storage
>> install -l rs 
>> /wrkdirs/usr/ports/net-mgmt/thanos/work/google-cloud-go-0.97.0/go/storage 
>> /wrkdirs/usr/ports/net-mgmt/thanos/work/thanos-0.24.0/vendor/cloud.google.com/storage 
>> install: 
>> /wrkdirs/usr/ports/net-mgmt/thanos/work/google-cloud-go-0.97.0/go/storage: 
>> realpath: No such file or directory
>> *** Error code 71
>> 
>> new makefile attached.  I've tried I don't know how many things with 
>> the m2t made lines.
>> 
> this is a little bit tricky.
> To understand it, you need to use tag storage/v1.10:
> https://github.com/googleapis/google-cloud-go/tree/storage/v1.10.0
> 
> This archive has a directory named storage you would like to link into:
> work/thanos-0.24.0/vendor/cloud.google.com/go/storage/
> You can find the directory with:
> tar tzvf
> /usr/ports/distfiles/googleapis-google-cloud-go-storage-v1.10.0_GH0.tar.gz
> 
> So at first you download it with a GH_TUPLE definition:
> +
> googleapis:google-cloud-go:storage/v1.10.0:googleapis_google_cloud_go_storage
> \
> 
> The last part here must be unique, I added _storage to it.
> 
> The content will be stored in (the path is used from the GH_TUPLE 
> definition):
> work/google-cloud-go-storage-v1.10.0/
> 
> The next step is now to remove the already existing directory:
> @${RM} -r ${WRKSRC}/vendor/cloud.google.com/go/storage
> 
> and now link the previously download archive into the removed 
> directory:
> @${RLN} ${WRKSRC_googleapis_google_cloud_go_storage}/storage
> ${WRKSRC}/vendor/cloud.google.com/go/storage
> 
> I attached you the makefile, which includes this modification.
> Maybe modules2tuple can be fixed to get it working if the version tag
> includes a `/ `.
> I added @dmgk@FreeBSD.org, maybe he has an idea how to fix this in
> modules2tuple.
> 
> Gruß
> Matthias


Still getting errors:

  ===>  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
*** Error code 1

-- 
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