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

how to custom zip file name? #1371

Open
bestgopher opened this issue Aug 27, 2024 · 1 comment
Open

how to custom zip file name? #1371

bestgopher opened this issue Aug 27, 2024 · 1 comment
Labels
feature request New feature or request

Comments

@bestgopher
Copy link

Hello, I want the generated .zip file name to be in the form xxx-darwin-amd64.zip. Can I achieve this through configuration?

@Gankra Gankra added the feature request New feature or request label Sep 5, 2024
@Gankra
Copy link
Contributor

Gankra commented Sep 5, 2024

This currently isn't supported, but I think the code is surprisingly well factored for it, in the sense that we generally avoid anything building up an artifact name from first principles, and instead require it to compute a target triple and look it up from there. This is yet another entry in "we should introduce some kind of templating syntax for certain configs" (like {name}-{version}-{tag}-{target}{ext}).

Although actually this specific pattern is trickier, because it's using a completely different target naming scheme than we use (e.g. "amd64" isn't even a particle we ever use). I believe this is the target format that Go developers like using? We'd need either need some very harrowing configuration to support that... or just a hardcoded "use go target triples" setting? Tricky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants