-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.modules
Milestone
Description
What version of Go are you using (go version
)?
$ go version go version go1.12 linux/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 GOARCH="amd64" GOBIN="" GOCACHE="/home/andy/.cache/go-build" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/andy/gopath" GOPROXY="" GORACE="" GOROOT="/home/andy/go" GOTMPDIR="" GOTOOLDIR="/home/andy/go/pkg/tool/linux_amd64" GCCGO="gccgo" CC="gcc" CXX="g++" 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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build556518556=/tmp/go-build -gno-record-gcc-switches"
What did you do?
init go module in git repository
What did you expect to see?
go module initialized
What did you see instead?
go mod does not recognize vcs with three level domains:
andy@debian-dev:/tmp/tmp.dFIHBNexOs$ git init Initialized empty Git repository in /tmp/tmp.dFIHBNexOs/.git/ andy@debian-dev:/tmp/tmp.dFIHBNexOs$ (master) git remote add origin https://git.bar.com/baz andy@debian-dev:/tmp/tmp.dFIHBNexOs$ (master) git remote -v origin https://git.bar.com/baz (fetch) origin https://git.bar.com/baz (push) andy@debian-dev:/tmp/tmp.dFIHBNexOs$ (master) go mod init go: cannot determine module path for source directory /tmp/tmp.dFIHBNexOs (outside GOPATH, no import comments)
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.modules