ssh:无法解析主机名 ssh:提供节点名称或服务名称,或未知

来源:2-2 go 代理和慕课网 git 设置

慕粉13598913215

2023-05-23

go: git.imooc.com/coding-535/common@v0.0.0-20220913123407-af94ee6eb5c3: invalid version: git ls-remote -q origin in /Users/xugang/go/pkg/mod/cache/vcs/e751c79984ecd4b50c236bd2655472de34da8493a9bc6932b8ffb477107202a1: exit status 128:
ssh: Could not resolve hostname ssh: nodename nor servname provided, or not known
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 /Users/xugang/go/pkg/mod/cache/vcs/e751c79984ecd4b50c236bd2655472de34da8493a9bc6932b8ffb477107202a1: exit status 128:
ssh: Could not resolve hostname ssh: nodename nor servname provided, or not known
fatal: Could not read from remote repository.

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

2回答

Cap

2023-05-24

0
1
慕粉13598913215
如果把这个推荐前三门课程学习完成,这个包自己可以做吗
2023-05-24
共1条回复

Cap

2023-05-24

使用go get 重新下一次后面不要带小版本

0
10
慕粉13598913215
回复
Cap
对,应该是权限问题, ssh 已经设置过了
2023-05-25
共10条回复

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

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

401 学习 · 169 问题

查看课程