Proxy repo support for Go in Nexus3

Hi Team,
In the CI pipeline we are using Sonatype Nexus RepositoryOSS 3.61.0-02. We would like to add proxy repo for Go packages. I was able to add a go proxy repo which point to https://proxy.golang.org. This worked fine as proxy to fetch packages referred in go.mod, when referred in go build environment. I have also tried to proxy checksum database which is hosted in url https://sum.golang.org. This is not working as expected. The process followed was from this page
Go Repositories
Tried to GOSUMDB env variable as
GOSUMDB=sum.golang.org+ publickey https://mynexushost/nexus/repository/golang-sum

Am I missing anything or is it a nexus version issue.?

Error I got was
google.golang.org/protobuf/cmd/server tested by
google.golang.org/protobuf/cmd/server.test imports
google.golang.org/grpc/encoding/gzip: google.golang.org/grpc@v1.62.1: verifying module: invalid GOSUMDB: malformed verifier id

Appreciate your responses.
Thanks
Jiju

1 Like