Skip to content

fix(release): strip stale sha256 comment from Homebrew formula - #81

Merged
AndreJorgeLopes merged 1 commit into
mainfrom
fix/formula-sha-comment
Jul 28, 2026
Merged

fix(release): strip stale sha256 comment from Homebrew formula#81
AndreJorgeLopes merged 1 commit into
mainfrom
fix/formula-sha-comment

Conversation

@AndreJorgeLopes

Copy link
Copy Markdown
Owner

TL;DR

The v0.24.0 Homebrew formula's url/sha256 are correct — verified: the published v0.24.0 tarball's sha256 matches the formula exactly. The only issue is a misleading leftover comment on the sha256 line that reads like an un-computed placeholder:

sha256 "9bc3…ee09" # Compute from release tarball: shasum -a 256 devflow-0.1.0.tar.gz

Cause

release.yml updates the sha with sed -i "s |sha256 \".*\"|sha256 \"${SHA}\"|". The greedy .* stops at the sha's closing quote, so it replaces only the value and leaves the trailing # …0.1.0… comment on every release.

Fix

  • Remove the comment from Formula/devflow.rb now.
  • Change the generator to replace the whole sha256 line (^([[:space:]]*)sha256 .* → clean line) so no trailing comment can survive any future release.

No functional change to installs (sha was already right); this removes the "is this a placeholder?" confusion and hardens the release pipeline.

🤖 Generated with Claude Code

The v0.24.0 formula url/sha256 are correct (verified: the published tarball's
sha256 matches). But the sha256 line carried a misleading leftover comment
`# Compute from release tarball: shasum -a 256 devflow-0.1.0.tar.gz`, which
read like the sha was an un-updated placeholder.

Cause: release.yml's sha sed replaced only the quoted value
(`s|sha256 ".*"|...|`), whose greedy `.*` stops at the closing quote and leaves
any trailing comment intact. Fix both: remove the comment from the formula now,
and replace the WHOLE sha256 line on every future release so it can't recur.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 28, 2026 17:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@AndreJorgeLopes
AndreJorgeLopes merged commit 704e0c3 into main Jul 28, 2026
1 check passed
@AndreJorgeLopes
AndreJorgeLopes deleted the fix/formula-sha-comment branch July 28, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants