panic on empty template expansion in .before.hooks #5928
Closed
philpennock
started this conversation in
Ideas, Issue Triage, and General discussions
Replies: 1 comment 1 reply
-
Thanks, looks like a bug indeed! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Running goreleaser (pro) v2.11.1 I triggered a panic exception with:
When the env-var is not present, this made an empty string in the hooks, which led to
panic: runtime error: slice bounds out of range [1:0]
It's an easy workaround (
{{ else }}true
) but I figured I should report it.Beta Was this translation helpful? Give feedback.
All reactions