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

cmd/go: go test reports compilation failures twice #26166

Closed
davecheney opened this issue Jul 1, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@davecheney
Copy link
Contributor

commented Jul 1, 2018

Please answer these questions before submitting your issue. Thanks!

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

% go version
go version devel +0dc814cd7f Sat Jun 30 01:04:30 2018 +0000 darwin/amd64

Does this issue reproduce with the latest release?

yes

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

darwin/amd64

What did you do?

Daves-MacBook-Pro(~/src/github.com/heptio/contour/internal/dag) % go test
# github.com/heptio/contour/internal/dag [github.com/heptio/contour/internal/dag.test]
./dag_test.go:2359:18: undefined: sevicemap
./dag_test.go:2446:18: undefined: sevicemap
# github.com/heptio/contour/internal/dag
./dag_test.go:2359:18: undeclared name: sevicemap
./dag_test.go:2446:18: undeclared name: sevicemap
vet: typecheck failures
FAIL    github.com/heptio/contour/internal/dag [build failed]

What did you expect to see?

Daves-MacBook-Pro(~/src/github.com/heptio/contour/internal/dag) % go test
# github.com/heptio/contour/internal/dag [github.com/heptio/contour/internal/dag.test]
./dag_test.go:2359:18: undefined: sevicemap
./dag_test.go:2446:18: undefined: sevicemap
FAIL    github.com/heptio/contour/internal/dag [build failed]

What did you see instead?

go test runs vet over the code that failed to compile causing it to report the same errors again with a slightly different prefix.

@myitcv

This comment has been minimized.

Copy link
Member

commented Jul 1, 2018

Dup of #26125?

@davecheney

This comment has been minimized.

Copy link
Contributor Author

commented Jul 1, 2018

@myitcv whoops, sorry for the noise.

@davecheney davecheney closed this Jul 1, 2018

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