Hi. I am having a struggle using go.mod and private gitlab repository. When I try to build my project go tries to download my repo and gets error 410 Gone.
System:
windows 10
My project structure:
private repo:
gitlam.com/me/private
structure:
pkg1
pkg2
cmd
|_prj
|_main.go
go.mod
go.sum
I am working in private/cmd/prj1 directory.
go.mod:
module gitlab.com/me/private
go 1.13.4
What I tried:
- set GOPRIVATE=gitlab.com/me/private
- set GOPRIVATE=gitlab.com/me/private/*
- set GONOPROXY=gitlab.com/me/private
- set GONOPROXY=gitlab.com/me/private/*
- set GONOSUMDB=
- set GONOSUMDB=gitlab.com/me/private
- set GONOSUMDB=gitlab.com/me/private/*
- git config --global url.“https://me:${personal-access-token}@gitlab.com/me/private”.insteadOf “https://gitlab.com/me/private”
- git config --global url.“https://me:${personal-access-token}@gitlab.com/me/private.git”.insteadOf “https://gitlab.com/me/private.git”
*_netrc/.netrc configuration
And every time the same 410 error… I am out of ideas. Maybe someone has a solution? Or maybe go does not support working in private repositories cmd folder?