项目根目录下的go.mod添加
require (
a.com/foo/bar v0.0.0
)
replace (
a.com/foo/bar => ./bar
)
执行go mod tidy
就会报: unrecognized import path "a.com/foo/bar": https fetch: Get "https://a.com/foo/bar?go-get=1": dial tcp: lookup a.com: no such host
然后就下不去了,怎么办
有疑问加站长微信联系(非本文作者)