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: generate ignores -tags option when used with ./... #13232

Closed
ghost opened this issue Nov 13, 2015 · 3 comments
Closed

cmd/go: generate ignores -tags option when used with ./... #13232

ghost opened this issue Nov 13, 2015 · 3 comments
Milestone

Comments

@ghost
Copy link

ghost commented Nov 13, 2015

https://github.com/opennota/go-generate-issue/tree/master/a

cd a

go generate -tags tag1 prints package a

go generate -tags tag1 ./... prints nothing.

Remove // +build tag1 line from a.go, and go generate ./... will print package a.

@rakyll
Copy link
Contributor

rakyll commented Nov 13, 2015

Also a go build bug.

pwd
/Users/jbd/src/github.com/opennota/go-generate-issue/a

go build -tags tag1 .
echo $?
0

go build -tags tag1 ./...
warning: "./..." matched no packages
warning: "./..." matched no packages

# the following works
go build -tags tag1 github.com/opennota/go-generate-issue/a/...

@rakyll rakyll added this to the Go1.6 milestone Nov 13, 2015
@rsc
Copy link
Contributor

rsc commented Nov 23, 2015

Possibly a dup of #11246.

@rsc
Copy link
Contributor

rsc commented Dec 17, 2015

Dup of #11246.

@rsc rsc closed this as completed Dec 17, 2015
@golang golang locked and limited conversation to collaborators Dec 29, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants