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

Support build tags in Magefile #978

Open
joeblubaugh opened this issue May 6, 2024 · 0 comments
Open

Support build tags in Magefile #978

joeblubaugh opened this issue May 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@joeblubaugh
Copy link

What would you like to be added:
Add a new field to the build package's Config type called Tags that is a []string. The buildBackend step should apply these tags to the build using the -tags flag.

Why is this needed:
One use case is enabling different behavior based on a build configuration. I would like to change the definition of certain functions when I pass a -tag experimental to go build. The provided Mage setup has no convenient way to pass these tags.

@joeblubaugh joeblubaugh added the enhancement New feature or request label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant