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/tools/go/packages: cannot specify build tags in Options #26509

Closed
zombiezen opened this issue Jul 20, 2018 · 1 comment
Closed

x/tools/go/packages: cannot specify build tags in Options #26509

zombiezen opened this issue Jul 20, 2018 · 1 comment

Comments

@zombiezen
Copy link
Contributor

AFAICT, golang.org/x/tools/go/packages does not provide any way to set what build tags are being used when finding files for the package.

/cc @ianthehat

@gopherbot gopherbot added this to the Unreleased milestone Jul 20, 2018
@suzmue
Copy link
Contributor

suzmue commented Jul 30, 2018

Fixed by golang.org/cl/125302

Build tags can be passed to golang.org/x/tools/go/packages by adding the "-tags" flag to Config.Flags

@suzmue suzmue closed this as completed Jul 30, 2018
@golang golang locked and limited conversation to collaborators Jul 30, 2019
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