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

Closed
hajimehoshi opened this issue Jun 7, 2019 · 2 comments
Closed

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

hajimehoshi opened this issue Jun 7, 2019 · 2 comments
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@hajimehoshi
Copy link
Member

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
Copy link
Contributor

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

@dmitshur dmitshur added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Jun 10, 2019
@hajimehoshi
Copy link
Member Author

This is no longer an issue.

@golang golang locked and limited conversation to collaborators Jul 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

4 participants