Closed
Description
What version of Go are you using (go version
)?
go version go1.9.2 darwin/amd64
Does this issue reproduce with the latest release?
YES
What operating system and processor architecture are you using (go env
)?
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/alexey.kamenskiy/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/rk/g9b46vzx70g86vhvqtmwtjxw0000gn/T/go-build019027498=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
What did you do?
$ go get internal.gitlab.url.com/group-name/subgroup-name/project-name
What did you expect to see?
Git repository cloned successfully
What did you see instead?
$ go get internal.gitlab.url.com/group-name/subgroup-name/project-name
# cd .; git clone https://internal.gitlab.url.com/group-name/subgroup-name.git /Users/username/go/src/internal.gitlab.url.com/group-name/subgroup-name
Cloning into '/Users/username/go/src/internal.gitlab.url.com/group-name/subgroup-name'...
remote: The project you were looking for could not be found.
fatal: repository 'https:///internal.gitlab.url.com/group-name/subgroup-name.git/' not found
package internal.gitlab.url.com/group-name/subgroup-name/project-name: exit status 128
Comment:
Gitlab (not sure since which version) allows for nested groups. Also it may be not a gitlab, but some other self-hosted Git solution which provides URLs longer than just 1 level of nesting.
Also appending .git
to the package name in go get
command allows for it to be cloned, however the package name then becomes project-name.git
.