Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upFeature Request: Optionally have build tags in generated files #153
Comments
This comment has been minimized.
This comment has been minimized.
That’s already possible in v2. All flags get passed through with packr2 build. |
markbates
closed this
Feb 5, 2019
This comment has been minimized.
This comment has been minimized.
Hi @markbates. I don't mean when building the binary, but when generating the |
markbates
reopened this
Feb 5, 2019
This comment has been minimized.
This comment has been minimized.
Re-opened now that I understand the request. Can I ask the use case for this? Would generating |
markbates
added
enhancement
help wanted
good first issue
packr2
labels
Feb 5, 2019
This comment has been minimized.
This comment has been minimized.
Use case: I'm one of the leads of Gitea, and to distribute our software on some OSes we can't compile static assets into the binary if we want our .deb to be added to the official channel, and so right now we are using bindata and have a TAG to include the bundled static assets in the binary. Looking into this I'm guessing that this file: https://github.com/gobuffalo/packr/blob/master/v2/jam/store/disk_tmpl.go is the right place to add the above build tag you suggested. I can create a PR for this today if that's the case. Thanks again |
This comment has been minimized.
This comment has been minimized.
PRs are totally welcome! :)
…-----------
Mark Bates
On Feb 5, 2019, 3:34 PM -0500, techknowlogick ***@***.***>, wrote:
Use case: I'm one of the leads of Gitea, and to distribute our software on some OSes we can't compile static assets into the binary if we want our .deb to be added to the official channel, and so right now we are using bindata and have a TAG to include the bundled static assets in the binary.
Looking into this I'm guessing that this file: https://github.com/gobuffalo/packr/blob/master/v2/jam/store/disk_tmpl.go is the right place to add the above build tag you suggested. I can create a PR for this today if that's the case.
Thanks again
|
techknowlogick commentedFeb 5, 2019
First, Thanks for packr😄 it is great.
As title. Right now I append the build tags after running packr, and it would be nice to have that all as one step.