Skip to content

cmd/go: GO111MODULE=on go get -v -insecure gitlab.com/xxx/xxx failed #32569

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
KielChan opened this issue Jun 12, 2019 · 3 comments
Closed

cmd/go: GO111MODULE=on go get -v -insecure gitlab.com/xxx/xxx failed #32569

KielChan opened this issue Jun 12, 2019 · 3 comments
Labels
FrozenDueToAge modules WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@KielChan
Copy link

KielChan commented Jun 12, 2019

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

$ go version
go version go1.12.1 linux/amd64

Does this issue reproduce with the latest release?

I am not sure.

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

go env Output
$ go env
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/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-build123327735=/tmp/go-build -gno-record-gcc-switches"

What did you do?

I have a package in gitlab repo, but path in the package shows like "github.com/xxx/xxx"

so, I replace it like this in go.mod:

module gitlab.com/grp/proj

go 1.12

require (

	github.com/xxx/xxx v1.0.0


replace github.com/xxx/xxx v1.0.0 => gitlab.com/xxx/xxx v0.0.0-xxxxxx-xxxxx

on my macOS, I can exec cmd GO111MODULE=on go get -v -insecure gitlab.com/xxx/xxx to pre-install it and then, when I exec cmd GOOS=linux GOARCH=amd64 CGO_ENABLED=1 GO111MODULE=on GOPROXY=https://athens.azurefd.net go build, it exit 0.

But when the cmd GO111MODULE=on go get -v -insecure gitlab.com/xxx/xxx executed in golang:v1.12.1 container, it may try to pull module in go.mod and without GOPROXY it failed in the end.

The go env and go version executed in golang:1.12.1

I want to know why.

What did you expect to see?

I can pre-install go module solely, not all of them in go.mod

What did you see instead?

@FiloSottile FiloSottile changed the title GO111MODULE=on go get -v -insecure gitlab.com/xxx/xxx failed cmd/go: GO111MODULE=on go get -v -insecure gitlab.com/xxx/xxx failed Jun 13, 2019
@FiloSottile
Copy link
Contributor

/cc @bcmills @jayconrod

By the way, why are you using -insecure?

@bcmills
Copy link
Contributor

bcmills commented Jun 13, 2019

without GOPROXY it failed in the end.

@bcmills bcmills added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Jun 13, 2019
@gopherbot
Copy link
Contributor

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@golang golang locked and limited conversation to collaborators Jul 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge modules WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

4 participants