在 Artifactory 中使用了一个名为 go-feature 的 go 存储库。 Go 模块已使用 jfrog rt gp
上传。环境变量 GOPROXY 设置为 Artifactory 在“设置我”窗口中提供的值。所有 go get
调用均失败并显示 404。Artifactory 版本为 6.6.1
$ go get -v speechmatics.com/cockroachdbingestor@v1.0.1
go: finding speechmatics.com/cockroachdbingestor v1.0.1
go: speechmatics.com/cockroachdbingestor@v1.0.1: unexpected status (http://user:token@fake_artifactory_url.com/speechmatics/api/go/go-feature/speechmatics.com/cockroachdbingestor/@v/v1.0.1.info): 404 Not Found
go: error loading module requirements
Speechmatics/cockroachdbingestor 模块存在于 Artifactory 1.0.1 版本中。它可以在网络浏览器中看到。
预计 go get
会起作用。
针对 URL 手动运行 curl 也会返回 404。返回 Artifactory header ,以便到服务器的路由有效。
最佳答案
升级到 6.8.2 后,go get
工作。
关于go - 将 GOPROXY 与 JFrog Artifactory 一起使用时找不到 404,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54234429/