第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

GoLand import go module public repo 失敗,版本無效

GoLand import go module public repo 失敗,版本無效

Go
函數(shù)式編程 2022-05-23 16:18:29
我想將我創(chuàng)建的模塊導入另一個項目。源代碼在 GitHub 中,在公共存儲庫中,但嘗試在 GoLand 中導入時出現(xiàn)以下錯誤:go: finding module for package github.com/ambye85/gophercises/linkgo: downloading github.com/ambye85/gophercises/link v0.0.0-20200323082040-d484a876f7e8go: downloading github.com/ambye85/gophercises v0.0.0-20200323082040-d484a876f7e8github.com/ambye85/gophercises/sitemap imports    github.com/ambye85/gophercises/link: github.com/ambye85/gophercises/link@v0.0.0-20200323082040-d484a876f7e8: verifying module: github.com/ambye85/gophercises/link@v0.0.0-20200323082040-d484a876f7e8: reading https://sum.golang.org/lookup/github.com/ambye85/gophercises/link@v0.0.0-20200323082040-d484a876f7e8: 410 Gone    server response:    not found: github.com/ambye85/gophercises/link@v0.0.0-20200323082040-d484a876f7e8: invalid version: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /tmp/gopath/pkg/mod/cache/vcs/a488fe783593bd6e7b765f40dfed37c7e534d0a80ca8e1bff63e11e21f02e8fd: exit status 128:        fatal: could not read Username for 'https://github.com': terminal prompts disabled我所做的所有搜索似乎都表明這是由于嘗試訪問私人倉庫造成的。這里情況不同。有誰知道原因和解決方法是什么?輸出go env:go envGO111MODULE=""GOARCH="amd64"GOBIN=""GOCACHE="/Users/ashleyb/Library/Caches/go-build"GOENV="/Users/ashleyb/Library/Application Support/go/env"GOEXE=""GOFLAGS=""GOHOSTARCH="amd64"GOHOSTOS="darwin"GOINSECURE=""GONOPROXY=""GONOSUMDB=""GOOS="darwin"GOPATH="/Users/ashleyb/go"GOPRIVATE=""GOPROXY="https://proxy.golang.org,direct"GOROOT="/usr/local/Cellar/go/1.14/libexec"GOSUMDB="sum.golang.org"GOTMPDIR=""GOTOOLDIR="/usr/local/Cellar/go/1.14/libexec/pkg/tool/darwin_amd64"GCCGO="gccgo"AR="ar"CC="clang"CXX="clang++"CGO_ENABLED="1"GOMOD=""CGO_CFLAGS="-g -O2"CGO_CPPFLAGS=""CGO_CXXFLAGS="-g -O2"CGO_FFLAGS="-g -O2"CGO_LDFLAGS="-g -O2"PKG_CONFIG="pkg-config"
查看完整描述

1 回答

?
MMMHUHU

TA貢獻1834條經(jīng)驗 獲得超8個贊

可以使用以下方法修復:

$ git config --global --add url."git@github.com:".insteadOf "https://github.com/"

當您嘗試進行身份驗證https但啟用了 2FA 時,可能會出現(xiàn)此問題。這可以通過強制 gitssh用于所有交互來解決。


查看完整回答
反對 回復 2022-05-23
  • 1 回答
  • 0 關注
  • 233 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號