【发布时间】:2019-06-11 13:33:16
【问题描述】:
在 Artifactory 中使用了一个名为 go-feature 的 go 存储库。 Go 模块已使用 jfrog rt gp 上传。 env var 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 标头,因此到服务器的路由正常。
【问题讨论】:
-
如果你 curl
http://user:token@fake_artifactory_url.com/speechmatics/go-feature/speechmatics.com/cockroachdbingestor/@v/v1.0.1.info,那也是 404 吗?这是访问同一工件的通用方式。 -
是的,这也返回 404。
标签: go artifactory