Skip to content

fix(release): strip leading v from version so Homebrew formula is valid - #211

Merged
rjamul-elnora-ai merged 1 commit into
mainfrom
fix/homebrew-version-extraction
Jul 16, 2026
Merged

fix(release): strip leading v from version so Homebrew formula is valid#211
rjamul-elnora-ai merged 1 commit into
mainfrom
fix/homebrew-version-extraction

Conversation

@rjamul-elnora-ai

Copy link
Copy Markdown
Member

Fixes the daily 'CI / Validate formula' failures on homebrew-cli and the broken brew install.

Root cause: the publish-npm and update-homebrew jobs extract the version with ${GITHUB_REF_NAME##*-v}, which only strips up to a -v. Tags are vX.Y.Z (no -v), so the v survived → the formula got version "vX.Y.Z", and because its URLs are .../download/v#{version}/... that became a double-v vvX.Y.Z URL (404). brew audit --strict correctly failed on the leading v.

Fix: use ${GITHUB_REF_NAME#v} (→ X.Y.Z), matching the sync-skills and smoke-test jobs that already do this. Next release regenerates a valid formula. (npm silently coerced the v away so publishing wasn't broken, but the same pattern is hardened for consistency.)

Paired with a homebrew-cli PR that fixes the currently-published formula so brew install works before the next release.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WUhYjxo3aEXF4RZE1oRmtL

The publish-npm and update-homebrew jobs extracted the version with
${GITHUB_REF_NAME##*-v}, which only strips up to a `-v`. Release tags are
`vX.Y.Z` (no `-v`), so the `v` was kept — the Homebrew formula got
`version "vX.Y.Z"`, and since its URLs are `.../download/v#{version}/...` that
produced a double-v `vvX.Y.Z` download URL (404) plus a `brew audit --strict`
failure. Use ${GITHUB_REF_NAME#v} like the sync-skills/smoke-test jobs already
do. (npm coerced the leading v away, so publish was unaffected, but harden it
for consistency.)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WUhYjxo3aEXF4RZE1oRmtL
@rjamul-elnora-ai
rjamul-elnora-ai merged commit ac2c888 into main Jul 16, 2026
9 checks passed
@rjamul-elnora-ai
rjamul-elnora-ai deleted the fix/homebrew-version-extraction branch July 16, 2026 21:38
rjamul-elnora-ai pushed a commit that referenced this pull request Jul 16, 2026
🤖 I have created a release *beep* *boop*
---


##
[2.5.2](v2.5.1...v2.5.2)
(2026-07-16)


### Bug Fixes

* **release:** strip leading v from version so Homebrew formula is valid
([#211](#211))
([ac2c888](ac2c888))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: elnora-automation-bot[bot] <294956319+elnora-automation-bot[bot]@users.noreply.github.com>
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