Skip to content
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

vgo build keeps asking for github username #25555

Closed
tamalsaha opened this issue May 25, 2018 · 1 comment
Closed

vgo build keeps asking for github username #25555

tamalsaha opened this issue May 25, 2018 · 1 comment

Comments

@tamalsaha
Copy link

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

$ go version
go version go1.10.2 linux/amd64
$ vgo version
go version go1.10.2 linux/amd64 vgo:2018-02-20.1

Does this issue reproduce with the latest release?

yes.

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

GOARCH="amd64"
GOBIN=""
GOCACHE="/home/tamal/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/tamal/go"
GORACE=""
GOROOT="/usr/local/go"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
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"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build196494337=/tmp/go-build -gno-record-gcc-switches"

What did you do?

If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.

I am trying to use vgo with https://github.com/appscode/voyager project. When I run vgo build, I keep getting the following error:

$ vgo build
vgo: creating new go.mod: module github.com/appscode/voyager
vgo: copying requirements from /home/tamal/go/src/github.com/appscode/voyager/glide.lock
vgo: stat bitbucket.org/ww/goautoneg@75cd24fc2f2c2a2088577d12123ddee5f54e0675: git fetch --depth=1 https://bitbucket.org/ww/goautoneg 75cd24fc2f2c2a2088577d12123ddee5f54e0675 in /home/tamal/go/src/v/cache/vcswork/4f9de782da8ff1b853350fa52c5409db3d627a2cad1936e1dfa5b584e60ea752: exit status 128:
	remote: Not Found
	fatal: unable to access 'https://bitbucket.org/ww/goautoneg/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.
vgo: stat github.com/appscode/jsonpatch@58a38a46ddb591a543c6b1003213353e29331c5a: cannot find hash 58a38a46ddb591a543c6b1003213353e29331c5a
vgo: stat github.com/coreos/prometheus-operator@b21c4949708337d04b9a4d7de0b806dd799a0955: cannot find hash b21c4949708337d04b9a4d7de0b806dd799a0955
vgo: stat github.com/hashicorp/go-version@53932f80ddea12bea96be074f9fb2dc545806aba: cannot find hash 53932f80ddea12bea96be074f9fb2dc545806aba
vgo: stat github.com/xenolf/lego@3aebf03cbb4625e96d5ad9708531ca7d4182e1d7: cannot find hash 3aebf03cbb4625e96d5ad9708531ca7d4182e1d7
vgo: stat golang.org/x/oauth2@ae8f41d1259ef29def32d39ca93a53ffc3b79f28: git fetch --depth=1 https://go.googlesource.com/oauth2 ae8f41d1259ef29def32d39ca93a53ffc3b79f28 in /home/tamal/go/src/v/cache/vcswork/ff8ff3c28fa3e0594093228ae3dddbec6baf7836babbaceec95bd5ce9802adfe: exit status 128:
	fatal: expected shallow/unshallow, got ERR internal server error
	fatal: The remote end hung up unexpectedly
vgo: stat k8s.io/apiserver@6fdedd7050e542dd8c23fdababac0237aedd7f9e: cannot find hash 6fdedd7050e542dd8c23fdababac0237aedd7f9e
vgo: finding github.com/hashicorp/vault v0.0.0-20180108183138-78adac0a24fb
FindRepo: Get https://appengine?go-get=1: dial tcp: lookup appengine on 127.0.0.53:53: server misbehaving
vgo: lookup appengine: Get https://appengine?go-get=1: dial tcp: lookup appengine on 127.0.0.53:53: server misbehaving
FindRepo: Get https://appengine/cloudsql?go-get=1: dial tcp: lookup appengine on 127.0.0.53:53: server misbehaving
vgo: lookup appengine/cloudsql: Get https://appengine/cloudsql?go-get=1: dial tcp: lookup appengine on 127.0.0.53:53: server misbehaving
FindRepo: Get https://appengine_internal?go-get=1: dial tcp: lookup appengine_internal on 127.0.0.53:53: server misbehaving
vgo: lookup appengine_internal: Get https://appengine_internal?go-get=1: dial tcp: lookup appengine_internal on 127.0.0.53:53: server misbehaving
FindRepo: Get https://appengine_internal/base?go-get=1: dial tcp: lookup appengine_internal on 127.0.0.53:53: server misbehaving
vgo: lookup appengine_internal/base: Get https://appengine_internal/base?go-get=1: dial tcp: lookup appengine_internal on 127.0.0.53:53: server misbehaving
vgo: lookup cloud.google.com/go/compute/metadata: module root is "cloud.google.com/go"
vgo: lookup cloud.google.com/go/iam: module root is "cloud.google.com/go"
vgo: lookup cloud.google.com/go/internal: module root is "cloud.google.com/go"
vgo: lookup cloud.google.com/go/internal/optional: module root is "cloud.google.com/go"
vgo: lookup cloud.google.com/go/internal/version: module root is "cloud.google.com/go"
vgo: lookup cloud.google.com/go/storage: module root is "cloud.google.com/go"
Username for 'https://github.com': 
Password for 'https://github.com': 
vgo: stat github.com/hashicorp/vault-plugin@: unknown revision ""
Username for 'https://github.com': ^C⏎                                     

What did you expect to see?

I expected to see go.mod file.

What did you see instead?

stack trace above.

@gopherbot
Copy link

Change https://golang.org/cl/114522 mentions this issue: vendor/cmd/go/internal/vgo: disable password prompt and SSH connection pooling

@golang golang locked and limited conversation to collaborators May 25, 2019
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