go mod tidy报错
git ls-remote -q origin in /root/go/pkg/mod/cache/vcs/aec54fbbaefd43bfa1535d95bb1775055ee75eb45d1d57d42a265acf28885d1e: exit status 128:
remote:
remote: ========================================================================
remote:
remote: The project you were looking for could not be found or you don't have permission to view it.
remote:
remote: ========================================================================
remote:
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
可以cd /root/go/pkg/mod/cache/vcs/aec54fbbaefd43bfa1535d95bb1775055ee75eb45d1d57d42a265acf28885d1e里面执行来重新设置origin的网址和用户,配合.netrc就可以解决权限问题
git remote set-url origin https://[email protected]/some-group/project.git