久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      關(guān)于go get超時(shí)的問題

      下面由golang教程欄目給大家介紹關(guān)于go get超時(shí) ,希望對需要的朋友有所幫助!

      關(guān)于go get超時(shí)的問題

      • 考慮是代理的問題

      設(shè)置第一個代理
      代理地址

      go env -w GO111MODULE=on go env -w GOPROXY=https://goproxy.io,direct  # 設(shè)置不走 proxy 的私有倉庫,多個用逗號相隔(可選) go env -w GOPRIVATE=*.corp.example.com  # 設(shè)置不走 proxy 的私有組織(可選) go env -w GOPRIVATE=example.com/org_name

      沒有下載成功 于是使用第二個

      代理地址

      $ go env -w GO111MODULE=on $ go env -w GOPROXY=https://goproxy.cn,direct

      也沒用 ,仔細(xì)看錯誤信息!

      go get gorm.io/gorm: gorm.io/gorm@v1.20.12: verifying module: gorm.io/gorm@v1.20.12: Get "https://sum.golang.org/lookup/gorm.io/gorm@v1.20.12": dial tcp 216.58.200.49:443: co nnectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

      原來因?yàn)镚o 1.13設(shè)置了默認(rèn)的GOSUMDB=sum.golang.org,這個網(wǎng)站是被墻了的,用于驗(yàn)證包的有效性,可以通過如下命令關(guān)閉:

      go env -w GOSUMDB=off

      可以設(shè)置

      GOSUMDB="sum.golang.google.cn"

      ,這個是專門為國內(nèi)提供的sum 驗(yàn)證服務(wù)。

      goenv-w GOSUMDB="sum.golang.google.cn

      -w 標(biāo)記 要求一個或多個形式為 NAME=VALUE 的參數(shù), 并且覆蓋默認(rèn)的設(shè)置

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號