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
Build tags does not work in main package #22669
Labels
Comments
Seems to be working as expected:
With Go 1.8:
|
With go 1.6
|
Maybe works because source file given to build command, my bad. But why |
Well, likely depends on my build scripts. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I want to restrict whole project from compilation on go versions < 1.9 so I put this into
main.go
it does not work, meanwhile it's ok if specified in other package within project. Is it yet another "idiomatic" gem I am not aware of or there is another "canonical" way?
I am asking because in 1.8 the json deserializer just broke some projects in very weird way and caused edge cases so such crutches will be required because core library no longer can be trusted.
The text was updated successfully, but these errors were encountered: