Skip to content

fix: build --single-target infer target from runtime#5443

Merged
caarlos0 merged 1 commit intomainfrom
build-single-target
Jan 13, 2025
Merged

fix: build --single-target infer target from runtime#5443
caarlos0 merged 1 commit intomainfrom
build-single-target

Conversation

@caarlos0
Copy link
Copy Markdown
Member

This works with Go already, but not with other languages. This PR adds a best-effort thingy to try to figure it out, based on common target patterns and names.

This should allow users to run goreleaser build --single-target with any language supported by goreleaser on most machines!

This works with Go already, but not with other languages.
This PR adds a best-effort thingy to try to figure it out, based on
common target patterns and names.

This should allow users to run `goreleaser build --single-target` with
any language supported by goreleaser on most machines!
@caarlos0 caarlos0 added enhancement New feature or request eco/generic labels Jan 13, 2025
@caarlos0 caarlos0 self-assigned this Jan 13, 2025
@pull-request-size pull-request-size Bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jan 13, 2025
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying goreleaser with  Cloudflare Pages  Cloudflare Pages

Latest commit: b6c2b97
Status: ✅  Deploy successful!
Preview URL: https://af550be5.goreleaser.pages.dev
Branch Preview URL: https://build-single-target.goreleaser.pages.dev

View logs

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.88%. Comparing base (07cdd07) to head (b6c2b97).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5443      +/-   ##
==========================================
+ Coverage   82.84%   82.88%   +0.04%     
==========================================
  Files         157      157              
  Lines       15329    15350      +21     
==========================================
+ Hits        12699    12723      +24     
+ Misses       2079     2077       -2     
+ Partials      551      550       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@caarlos0 caarlos0 merged commit 4526d04 into main Jan 13, 2025
@caarlos0 caarlos0 deleted the build-single-target branch January 13, 2025 23:46
@CosmicJesterX
Copy link
Copy Markdown

they can still start over again. Always make their own workflows also =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

eco/generic enhancement New feature or request size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants