Repository navigation
Conversation
After each stable release, a new homebrew-tap job renders Formula/q2.rb from the release's checksums.sha256 and pushes it to quarto-dev/homebrew-q2, so macOS and Linux users can `brew install quarto-dev/q2/q2` and `brew upgrade`. Nightlies, prereleases and dry runs are skipped, and the job skips itself until the HOMEBREW_TAP_TOKEN secret is set. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lets macOS and Linux users install and upgrade q2 with Homebrew:
Today the only way to upgrade is re-running
install.sh, sinceq2 updateisn't implemented.What this adds
scripts/homebrew-formula.shrendersFormula/q2.rbfrom a release'schecksums.sha256. It uses the prebuilt darwin/linux arm64 and amd64 archives the pipeline already publishes. If an archive is missing or the version isn't a bareX.Y.Z, it fails without printing a formula.homebrew-tapjob at the end ofrelease-pipeline.yml. After a stable release is published, it downloads the release's checksums, renders the formula, runsruby -con it, and pushes it toquarto-dev/homebrew-q2. Nightlies, prereleases and dry runs skip it.crates/quarto/tests/integration/homebrew_formula.rs. They are unix-only, likenightly_gate.rs.Setup needed before it does anything
quarto-dev/homebrew-q2repo.HOMEBREW_TAP_TOKENsecret to this repo: a fine-grained token with Contents read/write on the tap only.Until the secret is set, the job logs a notice and exits. It runs after the release job, so a tap failure can't block or undo a release.
Design choices
microsoft/winget-pkgs, which is a lot of churn at the current release rate. Also, WinGet IDs are hard to change if q2 ships under another name.Testing
-D warnings.checksums.sha256, the script renders a formula with the right URLs and checksums, andruby -creportsSyntax OK.brew install. Both should be checked after the first release once the setup is done.