Skip to content

fix(cli-release): use versioned homebrew asset names#87

Merged
lentil32 merged 1 commit intomainfrom
fix/cli-homebrew-versioned-assets
Apr 14, 2026
Merged

fix(cli-release): use versioned homebrew asset names#87
lentil32 merged 1 commit intomainfrom
fix/cli-homebrew-versioned-assets

Conversation

@lentil32
Copy link
Copy Markdown
Contributor

One-Line Summary

Fix the Homebrew release automation so it can download and publish formula updates for versioned CLI release assets.

User-Facing Changes

  • Homebrew tap updates now succeed for CLI releases whose GitHub asset filenames include the release version suffix.
  • cli-homebrew-release no longer fails during asset download with no assets match the file pattern for tags like cli-v0.1.28.

Why This Changed

The CLI release workflow publishes GitHub assets with versioned filenames such as onequery-npm-darwin-arm64-0.1.28.tgz, but the Homebrew workflow and formula generator still expected unsuffixed names such as onequery-npm-darwin-arm64.tgz. That mismatch caused the automated Homebrew follow-up to fail before checksum generation, so stable releases could publish to GitHub and npm while the tap update silently stopped.

How It Changed

  • The Homebrew workflow now downloads and hashes onequery-npm-<platform>-<version>.tgz assets using the resolved release version.
  • The formula generator now emits versioned GitHub release URLs so generated tap formulas point at the files the release workflow actually uploads.
  • The formula test expectations now assert the versioned asset URLs directly.

Bug Fixes

  • Under cli-v0.1.28, cli-homebrew-release tried to download onequery-npm-darwin-arm64.tgz while the release contained onequery-npm-darwin-arm64-0.1.28.tgz, and this change fixes that mismatch.

Extra Context / Decisions

  • I manually backfilled the Homebrew update for cli-v0.1.28 with workflow_dispatch after applying this fix, and that backfill run succeeded.

Verification

  • node --test apps/cli/scripts/generate-homebrew-formula.test.js
  • bun lint --format json apps/cli/scripts/generate-homebrew-formula.js apps/cli/scripts/generate-homebrew-formula.test.js
  • gh run view 24390150678

Video / Screenshot (Optional)

  • N/A

@lentil32 lentil32 requested a review from siisee11 as a code owner April 14, 2026 08:57
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
onequery-landing 0947858 Commit Preview URL

Branch Preview URL
Apr 14 2026, 08:56 AM

@lentil32 lentil32 merged commit 297696c into main Apr 14, 2026
10 checks passed
@lentil32 lentil32 deleted the fix/cli-homebrew-versioned-assets branch April 14, 2026 12:05
lentil32 added a commit that referenced this pull request Apr 15, 2026
You can install any of these versions: `npm install -g @onequery/cli@<version>`
## [0.1.29] - 2026-04-15
### 🚀 Features

- Update landing page copy and sample visuals (#86)
- Landing diagram redesign (#91)
- *(repo)* Add OpenClaw plugin for OneQuery (#90)

### 🪲 Bug Fixes

- *(cli-release)* Use versioned homebrew asset names (#87)
- *(cli)* Guide localhost transport failures to gateway start (#88)

### 💼 Other

- *(cli)* Align config set/get around canonical keys (#89)
<!-- generated - do not edit -->
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.

1 participant