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 · 1 comment
Open

Support build tags in Magefile #978

joeblubaugh opened this issue May 6, 2024 · 1 comment
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
@github-actions github-actions bot added the stale Issue or PR without activity label Aug 5, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 20, 2024
@joeblubaugh
Copy link
Author

Re-opening as I think this is still relevant. Not urgent, but relevant

@joeblubaugh joeblubaugh reopened this Sep 11, 2024
@joeblubaugh joeblubaugh removed the stale Issue or PR without activity label Sep 11, 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