Skip to content

fix(brew): escape backslashes in caveats for proper multiline display#402

Merged
mchmarny merged 2 commits intomainfrom
fix/brew-caveats-formatting
Mar 13, 2026
Merged

fix(brew): escape backslashes in caveats for proper multiline display#402
mchmarny merged 2 commits intomainfrom
fix/brew-caveats-formatting

Conversation

@mchmarny
Copy link
Copy Markdown
Member

@mchmarny mchmarny commented Mar 13, 2026

Summary

  • Double-escape backslashes in .goreleaser.yaml Homebrew caveats so \ line continuations render correctly in brew install output
  • Ruby heredocs interpret \ + newline as line continuation, collapsing the multi-line cosign command into a single line

Test plan

  • Verify generated Homebrew formula contains \\ in caveats
  • Confirm brew info aicr displays the cosign command with proper line breaks

Ruby heredocs interpret backslash-newline as line continuation,
collapsing the cosign command into a single line in brew output.
@mchmarny mchmarny requested a review from a team as a code owner March 13, 2026 11:21
@mchmarny mchmarny self-assigned this Mar 13, 2026
@mchmarny mchmarny added this to the M2 - KubeCon EU milestone Mar 13, 2026
@mchmarny mchmarny enabled auto-merge (squash) March 13, 2026 11:24
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 13, 2026

Coverage Report ✅

Metric Value
Coverage 73.3%
Threshold 70%
Status Pass
Coverage Badge
![Coverage](https://img.shields.io/badge/coverage-73.3%25-green)

No Go source files changed in this PR.

@mchmarny mchmarny disabled auto-merge March 13, 2026 11:31
@mchmarny mchmarny merged commit 23f2a02 into main Mar 13, 2026
12 checks passed
@mchmarny mchmarny deleted the fix/brew-caveats-formatting branch March 13, 2026 11:31
@github-actions github-actions bot removed the area/cli label Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants