我想使用 Go Remote 存储库代理 Github。我创建了 Go 远程 repo github 代理https://github.com/并且我还创建了一个 Go 虚拟存储库。如https://www.jfrog.com/confluence/display/RTF/Go+Registry#GoRegistry-RemoteRepositories中所述添加凭据。
我做了上面链接中解释的所有事情,但是当我尝试获取模块时,我得到了:
go env -w GONOSUMDB="*github.com/xxx/*"
export GOPROXY="https://test:%5Bredacted%5D@xxx.jfrog.io/artifactory/api/go/go"
go mod download -x
get https://test:%5Bredacted%5D@xxx.jfrog.io/artifactory/api/go/go/github.com/xxx/platform/@v/v0.21.0.mod
get https://test:%5Bredacted%5D@xxx.jfrog.io/artifactory/api/go/go/github.com/xxx/platform/@v/v0.21.0.mod: 404 Not Found (0.894s)
go: github.com/xxx/platform@v0.21.0: reading https://test:%5Bredacted%5D@xxx.jfrog.io/artifactory/api/go/go/github.com/xxx/platform/@v/v0.21.0.mod: 404 Not Found
除此之外,我还可以从 github 获取公共模块。身份验证似乎不起作用。
qq_花开花谢_0
相关分类