You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect proxies that are not git.wanfeng-inc.com requests: goproxy.
When it's a git.wanfeng-inc.com request, proxy athens
When I don't set GONOSUM before go get
$ GOPROXY=https://goproxy.wanfeng-inc.com go get git.wanfeng-inc.com/xs-samples/go-module-test
go: downloading git.wanfeng-inc.com/xs-samples/go-module-test v1.0.1
go: git.wanfeng-inc.com/xs-samples/go-module-test@v1.0.1: verifying module: git.wanfeng-inc.com/xs-samples/go-module-test@v1.0.1: reading https://goproxy.wanfeng-inc.com/sumdb/sum.golang.org/lookup/git.wanfeng-inc.com/xs-samples/go-module-test@v1.0.1: 404 Not Found
server response: not found: git.wanfeng-inc.com/xs-samples/go-module-test@v1.0.1: unrecognized import path "git.wanfeng-inc.com/xs-samples/go-module-test": https fetch: Get "https://git.wanfeng-inc.com/xs-samples/go-module-test?go-get=1": dial tcp 172.28.133.47:443: connect: connection refused
When I set GONOSUM before go get
$ GOPROXY=https://goproxy.wanfeng-inc.com GONOSUMDB=git.wanfeng-inc.com/* go get git.wanfeng-inc.com/xs-samples/go-module-test
go: downloading git.wanfeng-inc.com/xs-samples/go-module-test v1.0.1
go: git.wanfeng-inc.com/xs-samples/go-module-test@v1.0.1: parsing go.mod:
module declares its path as: git.wanfeng-inc.com/xs-samples/go-moudle-test
but was required as: git.wanfeng-inc.com/xs-samples/go-module-test
The key issue is that I have already specified the environment variables: ATHENS_GONOSUM_PATTERNS=git.wanfeng-inc.com/*
If you have to specify the GONOSUM environment variable before you go get, you might as well just use the GOPRIVATE environment variable instead of athens. gitlab has the goproxy feature enabled.
The purpose of this is to expect that private modules will be proxied by athens, while non-private public modules will be proxied by goproxy.cn, and when you go get, you only need to set the proxy link that GOPROXY provides for me, which will unify the problem of public module proxying and private module proxying.
The text was updated successfully, but these errors were encountered:
You shouldn't be getting a connection refused when you have NOSUMPATTERNS specified while using a SumDB. You should get an error, but not connection refused.
docker-compose.yml
download.model
nginx
I expect proxies that are not git.wanfeng-inc.com requests: goproxy.
When it's a git.wanfeng-inc.com request, proxy athens
When I don't set GONOSUM before go get
When I set GONOSUM before go get
$ GOPROXY=https://goproxy.wanfeng-inc.com GONOSUMDB=git.wanfeng-inc.com/* go get git.wanfeng-inc.com/xs-samples/go-module-test go: downloading git.wanfeng-inc.com/xs-samples/go-module-test v1.0.1 go: git.wanfeng-inc.com/xs-samples/go-module-test@v1.0.1: parsing go.mod: module declares its path as: git.wanfeng-inc.com/xs-samples/go-moudle-test but was required as: git.wanfeng-inc.com/xs-samples/go-module-test
The key issue is that I have already specified the environment variables: ATHENS_GONOSUM_PATTERNS=git.wanfeng-inc.com/*
If you have to specify the GONOSUM environment variable before you go get, you might as well just use the GOPRIVATE environment variable instead of athens. gitlab has the goproxy feature enabled.
The purpose of this is to expect that private modules will be proxied by athens, while non-private public modules will be proxied by goproxy.cn, and when you go get, you only need to set the proxy link that GOPROXY provides for me, which will unify the problem of public module proxying and private module proxying.
The text was updated successfully, but these errors were encountered: