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: consider making generate build tag-aware #9937

Closed
kortschak opened this issue Feb 19, 2015 · 1 comment
Closed

cmd/go: consider making generate build tag-aware #9937

kortschak opened this issue Feb 19, 2015 · 1 comment

Comments

@kortschak
Copy link
Contributor

Use case:

I have some example code (a package main with +build sometag) that is
generated. I would like to use go generate rather than have additional
instructions about which script in the directory was used to create the
example.

It would be nice to be able to go generate -tags sometag to only
generate the examples, however it seems that in the absence of a
specific file target go generate parses the entire directory without
examining tags.

See discussion at https://groups.google.com/d/topic/golang-nuts/uQy1hppWsZE/discussion

@kortschak
Copy link
Contributor Author

Invalid.

@golang golang locked and limited conversation to collaborators Jun 25, 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

2 participants