一切正常,直到我添加了一个私有存储库的依赖项。我注意到自动完成功能停止工作,并且 vscode 有一个错误通知:
Error loading workspace: err: exit status 1: stderr: go:
bitbucket.org/my-group/my-private-repo@v0.0.0-20210512194559-2c29669c4ecc:
reading https://api.bitbucket.org/2.0/repositories/my-group/my-private-repo?fields=scm:
403 Forbidden server response: Access denied. You must have write or admin access.
go: bitbucket.org/my-group/my-private-repo@v0.0.0-20210512194559-2c29669c4ecc:
reading https://api.bitbucket.org/2.0/repositories/my-group/my-private-repo?fields=scm:
403 Forbidden server response: Access denied. You must have write or admin access.
: packages.Load error
似乎 go 扩展正在尝试访问我的私人仓库:
- 为什么这对于代码竞争能够起作用是必要的?
- 如果有必要,如何将我的 SSH 密钥提供给 go 扩展?
- 其他解决方法?