gpt4 book ai didi

go-remote 不是下载模块而是下载 goget.html

转载 作者:行者123 更新时间:2023-12-01 22:29:03 25 4
gpt4 key购买 nike

当我 go get 时出现 404 错误通过 Artifactory 远程仓库。

$ go get -v github.com/pkg/errors
go get github.com/pkg/errors: unexpected status (http://myartifactory:8081/artifactory/api/go/go/github.com/pkg/errors/@v/list): 404 Not Found

是)我有的:
  • 转到 v1.11
  • 神器v6.5.9
  • GO111MODULE=on 和 GOPROXY=${ARTIFACTORY_URL}

  • 我在 Artifactory 远程仓库中发现的是一个显示 Github 页面的 goget.html。似乎 Artifactory 无法从 Github 克隆远程仓库,而只是保存了一个不相关的 html 页面。请问造成这个问题的可能原因是什么?提前致谢。

    最佳答案

    这在 v6.7 中已修复。

    Artifactory 6.7 Release Note

    修复了在某些情况下,Artifactory 远程 Go 存储库会缓存 goget.html 文件而不是相应的 Go 模块的问题。

    关于go-remote 不是下载模块而是下载 goget.html,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53664435/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com