V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
hijoker

原来 go mod 是不支持 http 的

  •  
  •   hijoker · Feb 18, 2020 · 4037 views
    This topic created in 2263 days ago, the information mentioned may be changed or developed.

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

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

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

    5 replies    2020-02-20 00:18:21 +08:00
    azh7138m
        1
    azh7138m  
       Feb 18, 2020
    issue 是说缺少对应 CA 证书的问题吧,或者说缺少类似 ca-certificates 这种包
    hijoker
        2
    hijoker  
    OP
       Feb 18, 2020
    @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  
       Feb 19, 2020
    内部也可以部署上一个证书啊
    astaxie
        4
    astaxie  
       Feb 19, 2020
    这里提供了两种解决方案,供参考 https://gocn.vip/topics/9803
    hijoker
        5
    hijoker  
    OP
       Feb 20, 2020
    @astaxie 哦,看看
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2670 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 12:00 · PVG 20:00 · LAX 05:00 · JFK 08:00
    ♥ Do have faith in what you're doing.