V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
hijoker
V2EX  ›  Go 编程语言

原来 go mod 是不支持 http 的

  •  
  •   hijoker · 2020-02-18 13:59:30 +08:00 · 3422 次点击
    这是一个创建于 1529 天前的主题,其中的信息可能已经有所发展或是发生改变。

    想搞定下 go mod 对私有仓库的支持,gitee 上建了个私有仓库 2 下就搞定了

    公司内部的 git lab 是 http 的,半天也搞不定,后来看见了这个 issue

    cmd/go: mod download doesn't allow insecure download

    5 条回复    2020-02-20 00:18:21 +08:00
    azh7138m
        1
    azh7138m  
       2020-02-18 14:07:25 +08:00
    issue 是说缺少对应 CA 证书的问题吧,或者说缺少类似 ca-certificates 这种包
    hijoker
        2
    hijoker  
    OP
       2020-02-18 23:10:42 +08:00
    @azh7138m 哦,好吧,我最开始是从[这个问题来的]( https://github.com/golang/go/issues/31741), 然后这个问题被标记未和[cmd/go: mod download doesn't allow insecure download #27332]( https://github.com/golang/go/issues/27332)重复了,其实就是一个意思
    xyjincan
        3
    xyjincan  
       2020-02-19 12:46:16 +08:00
    内部也可以部署上一个证书啊
    astaxie
        4
    astaxie  
       2020-02-19 13:06:17 +08:00
    这里提供了两种解决方案,供参考 https://gocn.vip/topics/9803
    hijoker
        5
    hijoker  
    OP
       2020-02-20 00:18:21 +08:00
    @astaxie 哦,看看
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5759 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 06:24 · PVG 14:24 · LAX 23:24 · JFK 02:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.