无法使用 JFrog Artifactory 将 GitHub 个私有存储库代理为 Go Registry
Unable to use JFrog Artifactory to proxy GitHub private repositories as Go Registry
我想使用 Go Remote 存储库代理 Github。我已经创建了 Go 远程仓库 github 代理 https://github.com/ and I have created a Go virtual repository as well. Credentials added as mentioned in https://www.jfrog.com/confluence/display/RTF/Go+Registry#GoRegistry-RemoteRepositories。
我做了上面 link 中解释的所有事情,但是当我尝试获取模块时,我得到了:
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 获得 public 个模块。 Auth 似乎不起作用。
您应该升级到 JFrog Artifactory 6.19+ 或 7.4.0+,因为这是之前缺少的功能 (https://www.jfrog.com/jira/browse/RTFACT-19395)。
我想使用 Go Remote 存储库代理 Github。我已经创建了 Go 远程仓库 github 代理 https://github.com/ and I have created a Go virtual repository as well. Credentials added as mentioned in https://www.jfrog.com/confluence/display/RTF/Go+Registry#GoRegistry-RemoteRepositories。
我做了上面 link 中解释的所有事情,但是当我尝试获取模块时,我得到了:
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 获得 public 个模块。 Auth 似乎不起作用。
您应该升级到 JFrog Artifactory 6.19+ 或 7.4.0+,因为这是之前缺少的功能 (https://www.jfrog.com/jira/browse/RTFACT-19395)。