【问题标题】:How to use JFrog Artifactory to proxy GitHub as Go Repository?如何使用 JFrog Artifactory 将 GitHub 代理为 Go Repository?
【发布时间】:2019-05-29 16:02:24
【问题描述】:

我想使用 Go Remote 存储库缓存/代理 Github。 我创建了 Go 远程 repo github 代理 https://github.com/(添加的凭据如 https://www.jfrog.com/confluence/display/RTF/Go+Registry#GoRegistry-RemoteRepositories 中所述)。

当我运行go get 工件日志显示以下错误:

2019-05-29 16:01:29,586 [http-nio-8081-exec-252] [ERROR] (o.a.a.g.r.GoResource:88) - Unsupported go repository request for 'github'```

【问题讨论】:

    标签: go artifactory


    【解决方案1】:

    在 Artifactory Go 存储库中,您无法直接从远程存储库解析,必须从虚拟存储库解析包。 只需将它包含在任何 Go 虚拟存储库中,您就可以开始使用了。

    另外,为什么不使用 gocenter 来打包 Go 包呢?它比 IMO 更可靠。

    【讨论】:

    • 有些包在 GoCenter 中不可用,我们也有一些我们想从 GitHub Ent 和 BitBucket 使用的私有包。
    • 我也尝试从 Virtual repo 解析包我得到同样的错误。
    • 不支持的存储库请求意味着 Artifactory 无法找到该 go repo。它必须是本地的或虚拟的。你的 goproxy 用了什么?
    • 谢谢我让 github 工作了,我已经将 Artifactory 配置为模块提供程序。现在只剩下 Prime 上的 Bitbucket。对于 bitbucket,我已将 Stash / Bitbuket Private 配置为模块提供程序。仍然当我尝试获取模块时,它给出了 404 而没有尝试从工件中的 bitbucket-go 远程仓库中获取它。
    • 不幸的是,BitBucket 和 GitHub on prem 尚不支持。但是请升级到 Artifactory 6.10 或更高版本,对 Go 进行了一些修复,专注于这些流程的 UX 等等......
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-01-08
    • 2017-06-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-10
    相关资源
    最近更新 更多