I'm trying to convert to use go modules in my repo now, but it keeps failing with exit 128. Repository not found The requested repository does not exist, or you do not have permission to access it. fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
My repos are private repos and i have git configured to use ssh insteadOf https when I run go get ./...
with NO modules GO111MODULE=off I'm able to get the repos.
However, when I switch to modules on GO111MODULE=on
I get the error mentioned above. My current go vars are
GO111MODULE=on
GOPROXY=direct
GOSUMDB=off
I've read the articles like this and this to setup git url insteadOf.
and here is my git setting
[url "ssh://git@git.company.com:port"]
insteadOf = https://git.company.com
Ideas?
Thanks