79633460

Date: 2025-05-22 09:37:49
Score: 0.5
Natty:
Report link

My first solution was to create _netrc and modules installed even without env variables:
GOPRIVATE, GOPROXY, GONOSUMDB.
This solution doesn't need code below to make HTTPS requests authorized as well.

git config --global url."https://oauth2:<access_token>[email protected]".insteadOf "https://gitlab.project.tech"

Must to mention, I'm using ssh and have configured .ssh/config to gitlab.

So, I started shuffle everything and after all I discovered that removing GOPRIVATE was the key.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Artur Safiullin