golang import github私人回购
完全糊涂了 使用模块执行1.13.5 我正在尝试从github导入私人回购。搜索是在增加混乱,而不是减少混乱。我已经尝试了很多方法,包括钥匙链助手,但我不会走得太快 SSH已启用,并且在测试时成功建立连接 我的全局gitconfig在C:/Users/me中:golang import github私人回购,go,github,Go,Github,完全糊涂了 使用模块执行1.13.5 我正在尝试从github导入私人回购。搜索是在增加混乱,而不是减少混乱。我已经尝试了很多方法,包括钥匙链助手,但我不会走得太快 SSH已启用,并且在测试时成功建立连接 我的全局gitconfig在C:/Users/me中: [user] name = xxxxxxx email = xxx.xxx@me.com [core] autocrlf = input [alias] st = status [url "ssh://gi
[user]
name = xxxxxxx
email = xxx.xxx@me.com
[core]
autocrlf = input
[alias]
st = status
[url "ssh://git@github.com/"]
insteadOf = https://github.com/
获取github.com/user/repo@master产生
go: finding github.com master
go: finding github.com/user master
go: finding github.com/user/repo master
go: finding github.com/user/repo master
go: downloading github.com/user/repo v0.0.0-20191211180807-ee1bcd94c84f
verifying github.com/user/repo@v0.0.0-20191211180807-ee1bcd94c84f:
github.com/user/repo@v0.0.0-20191211180807-ee1bcd94c84f: reading
https://sum.golang.org/lookup/github.com/!user/repo@v0.0.0-20191211180807-
ee1bcd94c84f:410 Gone
链接产生:
not found: github.com/user/repo@v0.0.0-20191211180807-ee1bcd94c84f: invalid version: git
fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in/tmp/gopath/pkg/mod/cache/vcs/9524fc42cfd4910346f55f112665f9a51df7c4b31085d50baa5e01453e55ca58:
exit status 128:
fatal: could not read Username for 'https://github.com': terminal prompts disabled
不管我做什么,我得到了这个“无法读取用户名”,但我认为它应该使用SSH而不是HTTPS
发生什么事了
到目前为止,我还没有感受到对模块的热爱,这让我的生活变得更轻松了……经过更多的搜索和实验,问题在于,在下载私人回购协议时,校验和失败了,因为根据定义,没有定义校验和 这被隐藏在Github上的一系列响应中。改进文档有一个悬而未决的问题。好主意 这对我很有用:
GONOSUMDB=github.com/username/*
go get github.com/username/repo
您是否在没有提示您的情况下创建了一个
git clone REPO
?(ssh表单)是的,git clone REPO工作正常,没有提示很抱歉完成:git clonegit@github.com:Chanonry/nk-s3.git工程