go: github.com/myorg/myrepo@v0.0.4: reading github.com/myorg/myrepo/go.mod at revision v0.0.4: unknown revision v0.0.4
I'm hitting the above blocker when go mod tidy
inside a different private repo call it: github.com/myorg/myrepo2
and attempting to fetch from my private repo github.com/myorg/myrepo
Contents of github.com/myorg/myrepo
master branch go.mod (at the root project level)
module github.com/myorg/myrepo
go 1.15
require (
github.com/abadojack/whatlanggo v1.0.1
github.com/mmcdole/gofeed v1.1.3
github.com/stretchr/testify v1.3.0
)
The repo has in fact a tag / release named v0.0.4
Additionally, I've tried everything described in the following:
- https://golang.cafe/blog/how-to-fix-go-mod-unknown-revision.html
- Installing private Go module: unknown revision error
- https://go.dev/ref/mod#private-modules
That is to say, I've tried configuring ~/.gitconfig
, GOPRIVATE
and other env vars, ~/$HOME/.netrc
,and even generating a GitHub access token. I should note that I also have an SSH key associated with Github account on this machine and ~/.ssh/config
contents as below:
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed12345
Host github.com
Hostname ssh.github.com
Port 443
I also ruled out the submodule issue described here reading github.com/username/kit/go/database/go/database/go.mod at revision go/database/v1.0.1: unknown revision go/database/v1.0.1
I'm at a loss on this one so any help would be appreciated.