go mod tidy 权限

来源:2-6 docker-compose yml编写和常见用法

qq_风吹叶落的荒凉_bep579

2022-11-22

PS E:_tmps\GoPaaS\Code\git.imooc.com\coding-535\base> go mod tidy
go: git.imooc.com/coding-535/common@v0.0.0-20220913123407-af94ee6eb5c3: invalid version: git ls-remote -q origin in C:\Users\SetWgx\go\pkg\mod\cache\vcs\e751c79984ecd4b50c236bd2655472de34da8493a9bc6932b8ffb477107202a1: exit status 128:
Host key verification failed.
fatal: Could not read from remote repository.

    Please make sure you have the correct access rights
    and the repository exists.

go: downloading git.imooc.com/coding-535/common v0.0.0-20220913123407-af94ee6eb5c3
go: git.imooc.com/coding-535/common@v0.0.0-20220913123407-af94ee6eb5c3: invalid version: git ls-remote -q origin in C:\Users\SetWgx\go\pkg\mod\cache\vcs\e751c79984ecd4b50c236bd2655472de34da8493a9bc6932b8ffb477107202a1: exit status 128:
Host key verification failed.
fatal: Could not read from remote repository.

    Please make sure you have the correct access rights
    and the repository exists.

慕课网仓库设置了主机ssh密钥
go env代理和慕课网配置git config --global url.“ssh://git@git.imooc.com:80/”.insteadOf "https://git.imooc.com/"
都按照要求配置了,还有其他要注意的点吗

Windows

依旧是这个权限问题,
图片描述

写回答

1回答

Cap

2022-12-12

这里说的是key没有权限,同学可以在客户端的 命令行界面里面测试下 git clone xx仓库地址,看能否联通。

0
0

Go 开发者的涨薪通道,自主开发 PaaS 平台核心功能

云原生专家带来稀缺的 PaaS 平台实战,带你直击核心业务+技术

400 学习 · 169 问题

查看课程