Porting Grafana Tempo: oauth2adapt Go module fails to download

I'm following the instructions under https://docs.freebsd.org/en/books/porters-handbook/book/#using-go. The easy way did not work for me.

Code:
make makesum
===>  License AGPLv3 accepted by the user
===>  License AGPLv3 accepted by the user
===>   grafana-tempo-2.6.1 depends on file: /usr/local/sbin/pkg - found
===>   grafana-tempo-2.6.1 depends on file: /usr/local/bin/go121 - found
===>   grafana-tempo-2.6.1 depends on package: ca_root_nss>0 - found
=> v2.6.1.mod doesn't seem to exist in /usr/home/daniel/Shared/Development/ports/distfiles/go/sysutils_tempo/tempo-v2.6.1.
=> Attempting to fetch https://proxy.golang.org/github.com/grafana/tempo/@v/v2.6.1.mod
fetch: https://proxy.golang.org/github.com/grafana/tempo/@v/v2.6.1.mod: Not Found
=> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/go/sysutils_tempo/tempo-v2.6.1/v2.6.1.mod
fetch: http://distcache.FreeBSD.org/ports-distfiles/go/sysutils_tempo/tempo-v2.6.1/v2.6.1.mod: Not Found
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/home/daniel/Shared/Development/ports/distfiles/go/sysutils_tempo/tempo-v2.6.1 and try again.
*** Error code 1

So instead I used the "full porting process". After it generates the stuff I copy & paste into the make file, I attempt to update the distinfo. All except modules are downloaded except for

Code:
googleapis:google-cloud-go:v0.2.2:googleapis_google_cloud_go_1/vendor/cloud.google.com/go/auth/oauth2adapt

It returns a 404:

Code:
=> googleapis-google-cloud-go-v0.2.2_GH0.tar.gz doesn't seem to exist in /usr/home/daniel/Shared/Development/ports/distfiles/.
=> Attempting to fetch https://codeload.github.com/googleapis/google-cloud-go/tar.gz/v0.2.2?dummy=/googleapis-google-cloud-go-v0.2.2_GH0.tar.gz
fetch: https://codeload.github.com/googleapis/google-cloud-go/tar.gz/v0.2.2?dummy=/googleapis-google-cloud-go-v0.2.2_GH0.tar.gz: Not Found
=> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/googleapis-google-cloud-go-v0.2.2_GH0.tar.gz
fetch: http://distcache.FreeBSD.org/ports-distfiles/googleapis-google-cloud-go-v0.2.2_GH0.tar.gz: Not Found
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/home/daniel/Shared/Development/ports/distfiles/ and try again.
*** Error code 1

Yet, there seems to be a release for it at Github: https://github.com/googleapis/google-cloud-go/releases/tag/auth/oauth2adapt/v0.2.2

The other issue is that it seems to make a recursive symlink

Code:
/home/daniel/Shared/Development/ports/sysutils/tempo/work/tempo-2.6.1/tempo-2.6.1/tempo-2.6.1/tempo-2.6.1/.......

The full Makefile so far (it's still a WIP) is attached.
 

Attachments

II think there is a bug with ports-mgmt/modules2tuple. I need to adjust the line slightly from:

Code:
googleapis:google-cloud-go:v0.2.2:googleapis_google_cloud_go_1/vendor/cloud.google.com/go/auth/oauth2adapt

To:

Code:
googleapis:google-cloud-go:auth/oauth2adapt/v0.2.2:googleapis_google_cloud_go/vendor/cloud.google.com/go/auth/oauth2adapt

It's seems to be the case for multiple instances (only showing one out of a handful more):

Code:
=> open-telemetry-opentelemetry-collector-pdata-v1.12.0_GH0.tar.gz doesn't seem to exist in /usr/home/daniel/Shared/Development/ports/distfiles/.
=> Attempting to fetch https://codeload.github.com/open-telemetry/opentelemetry-collector/tar.gz/pdata/v1.12.0?dummy=/open-telemetry-opentelemetry-collector-pdata-v1.12.0_GH0.tar.gz
fetch: https://codeload.github.com/open-telemetry/opentelemetry-collector/tar.gz/pdata/v1.12.0?dummy=/open-telemetry-opentelemetry-collector-pdata-v1.12.0_GH0.tar.gz: size of remote file is not known
open-telemetry-opentelemetry-collector-pdata-v        1868 kB 5061 kBps    01s
=> open-telemetry-opentelemetry-collector-v1.9.0_GH0.tar.gz doesn't seem to exist in /usr/home/daniel/Shared/Development/ports/distfiles/.
=> Attempting to fetch https://codeload.github.com/open-telemetry/opentelemetry-collector/tar.gz/v1.9.0?dummy=/open-telemetry-opentelemetry-collector-v1.9.0_GH0.tar.gz
fetch: https://codeload.github.com/open-telemetry/opentelemetry-collector/tar.gz/v1.9.0?dummy=/open-telemetry-opentelemetry-collector-v1.9.0_GH0.tar.gz: Not Found
=> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/open-telemetry-opentelemetry-collector-v1.9.0_GH0.tar.gz
fetch: http://distcache.FreeBSD.org/ports-distfiles/open-telemetry-opentelemetry-collector-v1.9.0_GH0.tar.gz: Not Found
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/home/daniel/Shared/Development/ports/distfiles/ and try again.
*** Error code 1

To fix the above, I changed:

Code:
open-telemetry:opentelemetry-collector:v1.12.0:open_telemetry_opentelemetry_collector_4/vendor/go.opentelemetry.io/collector/pdata

To:

Code:
open-telemetry:opentelemetry-collector:pdata/v1.12.0:open_telemetry_opentelemetry_collector/vendor/go.opentelemetry.io/collector/pdata

I prefix the version with the sub-directory. Not sure if the renaming is necessary though.
 
Back
Top