go - 将 GOPROXY 与 JFrog Artifactory 一起使用时找不到 404

标签 go artifactory

在 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/

相关文章:

multithreading - Golang线程不是每次都执行

google-app-engine - Go 的 Google App Engine 数据存储区没有 != 过滤器

maven - 如何防止以前部署的 Artifact 被覆盖?

人工存档条目下载 : 404 for tgz with leading dot in path to archived resource

go - 使用 Gorilla Mux 和标准 http.FileServer 的自定义 404

go - 如何通过Google Cloud Tasks Go客户端库指定执行延迟?

csv - GoCSV : concatenate 2 csv columns into a single struct member

gradle - gradle人工插件无法使用groupID发布

从 Artifactory 下载文件的 Java 代码不起作用

sbt - 迁移到 SBT 0.13.5 后,Artfactory 中的用户未经身份验证