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/playground: inconsistent GOOS when go-vet-ing and executing #32481

Open
hajimehoshi opened this issue Jun 7, 2019 · 1 comment
Open

x/playground: inconsistent GOOS when go-vet-ing and executing #32481

hajimehoshi opened this issue Jun 7, 2019 · 1 comment

Comments

@hajimehoshi
Copy link
Contributor

@hajimehoshi hajimehoshi commented Jun 7, 2019

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

n/a

Does this issue reproduce with the latest release?

n/a

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

n/a

What did you do?

Run
https://play.golang.org/p/kk3GHSV1tqM

What did you expect to see?

./foo_nacl.go:5:2: unreachable code
Go vet exited.

GOOS: nacl

or

./foo_linux.go:5:2: unreachable code
Go vet exited.

GOOS: linux

What did you see instead?

./foo_linux.go:5:2: unreachable code
Go vet exited.

GOOS: nacl

That's odd that GOOS-es are different when go-vet-ing and executing the snippet.

@gopherbot gopherbot added this to the Unreleased milestone Jun 7, 2019
@agnivade

This comment has been minimized.

Copy link
Contributor

@agnivade agnivade commented Jun 8, 2019

Just a hunch, but maybe build tags are set to linux/amd64 when playground runs vet. That's why it always goes to foo_linux.go first and exits. And while running, it always gives GOOS as nacl.

@ysmolsky @andybons @dmitshur

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