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
feat: allow a --output flag on goreleaser build #2701
Conversation
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
Codecov Report
@@ Coverage Diff @@
## main #2701 +/- ##
==========================================
+ Coverage 84.96% 84.98% +0.02%
==========================================
Files 105 105
Lines 7953 7968 +15
==========================================
+ Hits 6757 6772 +15
Misses 980 980
Partials 216 216
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👌
I was thinking it would be better to use a config file option, so multiple build IDs could be done in one command. |
hmm, if that's the case, then yeah, it might make more sense... will do as you suggested |
I'm also happy to help work on this. |
feel free to do so if you want :) |
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@SuperQ what about this: when using |
closes #2685
This would add similar behavior as
go build
, a-o
flag.so, when you
goreleaser build --single-target -o foo
, it will save the binary asfoo
(if you have only one build config, otherwise this also needs the--id
flag).Hopefully this helps replacing some build tasks on makefiles :)