Skip to content

fix(shell): prevent panic on empty commands #5929

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

Merged
merged 1 commit into from
Jul 27, 2025
Merged

fix(shell): prevent panic on empty commands #5929

merged 1 commit into from
Jul 27, 2025

Conversation

caarlos0
Copy link
Member

it might happen that the string is templated, but it evals to empty, in which case shell was panicking.

this should fix it

https://github.com/orgs/goreleaser/discussions/5928

it might happen that the string is templated, but it evals to empty, in
which case shell was panicking.

this should fix it

https://github.com/orgs/goreleaser/discussions/5928
@caarlos0 caarlos0 self-assigned this Jul 25, 2025
@caarlos0 caarlos0 added the bug Something isn't working label Jul 25, 2025
@pull-request-size pull-request-size bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jul 25, 2025
Copy link

Deploying goreleaser with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1d569f4
Status: ✅  Deploy successful!
Preview URL: https://ca8d8b33.goreleaser.pages.dev
Branch Preview URL: https://shell-empty.goreleaser.pages.dev

View logs

Copy link

codecov bot commented Jul 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.67%. Comparing base (21eefb1) to head (1d569f4).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5929   +/-   ##
=======================================
  Coverage   82.67%   82.67%           
=======================================
  Files         165      165           
  Lines       16533    16536    +3     
=======================================
+ Hits        13668    13671    +3     
  Misses       2273     2273           
  Partials      592      592           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@caarlos0 caarlos0 merged commit 3d51f80 into main Jul 27, 2025
17 checks passed
@caarlos0 caarlos0 deleted the shell-empty branch July 27, 2025 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant