My VSCode is having a difficult time with Golang
and its updates with GitHub. On console, I can use Git
normally, I also use go
commands to build and run my go
applications and everything works just fine. But, when I use VSCode
, it simply cannot manage to authenticate via SSH
the same way the console does.
The complete message is:
Error loading workspace: err: exit status 1: stderr: go: github.com/abc/abc@v0.0.0-20210610172953-593247e413d4:
invalid version: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in
D:\Program Files\Go\bin\pkg\mod\cache\vcs\1c3dbe9a49296bf60aa851731c66574793ff0c41b2a50ff727de076b8a8fce2d: exit status 128:
Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists. : packages.Load error
Anybody knows how to solve this?