Skip to content

go get fails on private gitlab subgroup #38645

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
phumberdroz opened this issue Apr 24, 2020 · 1 comment
Closed

go get fails on private gitlab subgroup #38645

phumberdroz opened this issue Apr 24, 2020 · 1 comment

Comments

@phumberdroz
Copy link

What version of Go are you using (go version)?

$ go version
go version go1.14.2 darwin/amd64

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/phumb/Library/Caches/go-build"
GOENV="/Users/phumb/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/phumb/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/5t/b4t679kn1cn0z9ng7fb5p2h40000gn/T/go-build473901424=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

Trying to go get a private Gitlab Repo. (replaced group name with COMPANY)

go get -v gitlab.com/COMPANY/services/redirecturl
get "gitlab.com/COMPANY/services/redirecturl": found meta tag get.metaImport{Prefix:"gitlab.com/COMPANY/services", VCS:"git", RepoRoot:"https://gitlab.com/COMPANY/services.git"} at //gitlab.com/COMPANY/services/redirecturl?go-get=1
get "gitlab.com/COMPANY/services/redirecturl": verifying non-authoritative meta tag
gitlab.com/COMPANY/services (download)
package gitlab.com/COMPANY/services/redirecturl: /Users/phumb/go/src/gitlab.com/COMPANY/services exists but /Users/phumb/go/src/gitlab.com/COMPANY/services/.git does not - stale checkout?

What did you expect to see?

I hoped go get would just work.

What did you see instead?

It tries to pull company/services.git but the repository is at company/services/redirecturl.git

@phumberdroz
Copy link
Author

@golang golang locked and limited conversation to collaborators Apr 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants