Repository navigation
fix(release): check the Homebrew formula from a local tap (#652) - #1462
Merged
Merged
Conversation
qualify_release --mode full ran `brew style` and `brew audit --strict --offline` on the formula's file path. Current Homebrew applies formula rules only inside a tap: on a bare path `brew style` runs generic RuboCop and also loads the installed flooooooooooow/flow tap, so it reported Style/Documentation and Lint/DuplicateMethods, and `brew audit` rejects --offline. --mode full failed on macOS for a valid formula. The qualifier now copies the formula into a throwaway local tap, runs style and audit there (audit is offline by default), and removes it. The release docs use the same local-tap commands for install and test.
godofecht
enabled auto-merge
October 8, 2026 00:40
Contributor
Author
|
Full macOS run on this branch head |
9 of 10 tasks
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.
Part of #652 (v2.0.0 release qualification on macOS).
Problem
./flow tool qualify_release --dry-run --mode fullon macOS (mainc9ee072f, Homebrew 7.0.8) passed every gate and then failedformula_structural:Homebrew applies its formula rules only inside a tap. On a bare file path
brew styleruns generic RuboCop and loads the installed tap, andbrew auditrejects--offline(Error: invalid option: --offline). Installing from a bare path is refused too, so the documented commands did not work.Change
validate_formula_pathcopies the formula into a throwaway local tap (flowqualify/checkunderbrew --repository), runsbrew styleandbrew audit --strict(offline by default) on it, and removes the tap directory on every path.Proof (macOS 26 arm64, Homebrew 7.0.8)
--mode fullresultfailwith the output above../flow tool qualify_release --check-formula --mode fullprints1 file inspected, no offenses detectedandformula.brew: pass, exit 0. Noflowqualifytap is left behind.descstarts with an article and ends with a full stop fails withFormulaAudit/Descoffenses, which the old bare-path run never applied../flow tool tests/scripts/qualify_release.flow13/0,./flow tool tests/tools/run.flowpass,doc_linksandscript_refspass.No tag, release or tap push. Risk: the check now writes and removes one directory under the Homebrew repository's Taps folder.