Go build constraints
#18762
-
Is it possible to specify build constraints to the go compiler with Pants? For example, if I have a file //go:build sometimes
package foo The go compiler will only include that file in the build if I specify the $ go build -tags=sometimes ./... I couldn't see a way to specify the |
Beta Was this translation helpful? Give feedback.
Answered by
joneshf
Apr 22, 2023
Replies: 1 comment
-
My searching was poor. Looks like there's already a feature request. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
joneshf
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My searching was poor. Looks like there's already a feature request.