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

x/vgo: confusing error when run in go1.9.2 #23957

Closed
spenczar opened this issue Feb 20, 2018 · 4 comments

Comments

@spenczar
Copy link
Contributor

commented Feb 20, 2018

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

go version go1.9.2 darwin/amd64

Does this issue reproduce with the latest release?

No.

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

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/snelson/go"
GORACE=""
GOROOT="/Users/snelson/go1.9.2"
GOTOOLDIR="/Users/snelson/go1.9.2/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/07/3tqty4fn0pqdmk8kyscf2g2m0wg_zb/T/go-build698484425=/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?

I ran vgo help.

What did you expect to see?

Help text.

What did you see instead?

-> % vgo build
vgo objabi: cannot find GOMIPS

I found this error message very confusing. It appears to be fixed when I upgraded to go1.10.

It's fine if vgo only works in go1.10+, but I would like the error message to say so.

@gopherbot gopherbot added this to the Unreleased milestone Feb 20, 2018

@bradfitz bradfitz modified the milestones: Unreleased, vgo Feb 21, 2018

@gopherbot

This comment has been minimized.

Copy link

commented Feb 21, 2018

Change https://golang.org/cl/95581 mentions this issue: vgo: fail at runtime if not using Go 1.10+

@bradfitz

This comment has been minimized.

Copy link
Member

commented Feb 21, 2018

@jeffallen

This comment has been minimized.

Copy link
Contributor

commented Apr 4, 2018

This is still happening for me:

icsil1noteb238:bin jallen$ ./go version
go version go1.9.5 darwin/amd64
icsil1noteb238:bin jallen$ ./go get golang.org/x/vgo
icsil1noteb238:bin jallen$ vgo list
vgo objabi: open /usr/local/go/src/cmd/internal/objabi/zbootstrap.go: no such file or directory
vgo objabi: cannot find GOARM
icsil1noteb238:bin jallen$ cd $(./go env GOPATH)/src/golang.org/x/vgo
icsil1noteb238:vgo jallen$ git log -1
commit 890b798475a0fc2108fa88d9b2810d5f768f5752 (HEAD -> master, origin/master, origin/HEAD)

I also saw it when accidentally trying to use vgo in a Dockerfile like this:

FROM golang:1.9 as builder
RUN go get golang.org/x/vgo
RUN vgo get github.com/myuser/mypkg
@bradfitz

This comment has been minimized.

Copy link
Member

commented Apr 4, 2018

@jeffallen, I bet your "go get vgo" layer in your Dockerfile is cached.

@golang golang locked and limited conversation to collaborators Apr 4, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
4 participants
You can’t perform that action at this time.