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: vgo vendor
fails with github.com/stretchr/testify
#25871
Comments
Ignoring build tags is the intended behavior as of https://golang.org/cl/117258, but I don't understand why |
Thanks! The problem is introduced with this change indeed. Looking forward to a bugfix :) |
Change https://golang.org/cl/118956 mentions this issue: |
What version of Go are you using (
go version
)?go version go1.10.1 darwin/amd64 vgo:2018-02-20.1
Latest
vgo
:What did you do?
Please refer to https://github.com/mwf/goplay/tree/master/vgo/testify
This happens with all projects using github.com/stretchr/testify when you try to use
vgo vendor
.If you check https://github.com/davecgh/go-spew/blob/master/spew/testdata/dumpcgo.go you can see that it uses build tags
// +build cgo,testcgo
And this file is used in https://github.com/davecgh/go-spew/blob/master/spew/dumpcgo_test.go which is also built only when using the same build tags.
What did you expect to see?
I expect
vgo vendor
to populate thevendor
folder.It seems it doesn't respect build tags on some stage.
What did you see instead?
vgo vendor
fails to populate vendor folder with an error:The text was updated successfully, but these errors were encountered: