Skip to content

Fix version mismatch breaking Homebrew upgrades#19

Merged
bluestreak01 merged 1 commit intomasterfrom
vi_ci_fix
Apr 15, 2026
Merged

Fix version mismatch breaking Homebrew upgrades#19
bluestreak01 merged 1 commit intomasterfrom
vi_ci_fix

Conversation

@bluestreak01
Copy link
Copy Markdown
Member

Summary

  • Patch Cargo.toml version from the release tag before building in both build and linux-packages jobs, so the compiled binary (CARGO_PKG_VERSION), .deb, and .rpm packages all carry the correct release version instead of the stale 0.1.0
  • Accept tags with or without v prefix — the workflow now triggers on both v0.1.3 and 0.1.3 style tags
  • Use {{RELEASE_TAG}} in Homebrew formula download URLs instead of hardcoded v{{VERSION}}, so the URLs always match the actual GitHub release tag regardless of prefix style

Problem

Homebrew formula version was set correctly from the git tag, but the installed binary reported 0.1.0 (from Cargo.toml which was never bumped). This version mismatch caused brew upgrade to malfunction. Additionally, .deb/.rpm packages were always versioned as 0.1.0.

Test plan

  • Push a new tag (e.g. v0.1.3) and verify the release workflow passes
  • Verify the built binary reports the correct version via CARGO_PKG_VERSION
  • Verify brew upgrade questdb/middle-manager/mm works after the tap PR is merged
  • Verify .deb and .rpm filenames contain the release version

🤖 Generated with Claude Code

…w formula

The compiled binary, .deb, and .rpm packages were all stuck at the
Cargo.toml version (0.1.0) regardless of the release tag. This broke
Homebrew upgrades because the formula version didn't match the binary,
and prevented `brew upgrade` from working.

- Patch Cargo.toml version from the release tag before building
  (both build and linux-packages jobs)
- Accept tags with or without `v` prefix (e.g. 0.1.2 and v0.1.2)
- Use actual RELEASE_TAG in Homebrew download URLs instead of
  hardcoded `v{{VERSION}}` to handle both tag styles

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bluestreak01 bluestreak01 merged commit 39de5f6 into master Apr 15, 2026
11 checks passed
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