Repository navigation
fix(homebrew): align stable formula with published v1.0.1 archive (#652) - #1395
Conversation
|
Local macOS Homebrew validation for head Environment: macOS 26.2 (25C56), Apple Silicon, Homebrew 7.0.8, Xcode 26.2. Formula checked out from this PR into a temporary worktree.
pip's truststore can't read the macOS version inside the Homebrew build sandbox. The formula also installs numpy with an unpinned After the test I uninstalled [email protected] and removed the local tap and worktree. The local brew formula list is the same as before. The #652 local Homebrew acceptance criterion is still open. |
|
Local Homebrew check at head
Cause: the v1.0.1 Not merging. The test install, its [email protected] dependency and the local tap were removed afterwards, and the brew formula, cask and tap lists match what was there before. |
The v1.0.1 flow script writes compile output to libexec/build, which is read-only in the brew test sandbox, so the old test always failed there. The test now asserts that flow version prints Flow <version>.
|
Pushed Local re-check on macOS arm64 (Homebrew 7.0.8, throwaway local tap):
Not merging yet. CI's Dry-run qualify check fails: The Jules fix removed The homebrew-flow tap's PR #1 needs the same formula as this PR once it's settled. |
brew audit --strict calls a version line that repeats the url redundant, so the formula on this branch dropped it, and qualify_release --check-formula then failed with "formula has no version field". The check now takes the version from the flow-vX.Y.Z.tar.gz url when the formula has no version line, still prefers an explicit one, and fails only when neither gives a version. Tests cover both cases.
|
Merged (squash The last commit changes The homebrew-flow tap's PR #1 still needs the same formula as |
Part of #652, paired with flooooooooooow/homebrew-flow#1.
The current stable v1.0.1 artifact is
flow-v1.0.1.tar.gzwith GitHub-recorded SHA-256deb4978f97cb5643c29fcb9d73ab72a8eb121e2e31c60df73ba6870d04f5229b. The published release workflow produced it usinggit archive v1.0.1.The v1.0.1 tree includes
flow,flow-lsp,src/,lib/,runtime/,compiler/, but noVERSIONorflow-driver. The previous in-repo formula required missingVERSION; the previous public-tap formula required missingflow-driver, causing a real source-layout packaging regression despite correct URL/digest.This PR uses a conditional install path with documented Homebrew
build.head?: stable installs the actual v1.0.1src/layout;--HEADinstallsVERSION/toolsand boots the Flow-native CLI for currentmain(VERSION=2.0.0). The paired proposed formulas are byte-identical.Evidence so far: the published digest and tag tree were verified via GitHub; both proposed formula files compared byte-for-byte; the updated Ruby parsed with
ruby -c(Syntax OK). No real macOS Homebrew install or brew test has been performed. The local Homebrew acceptance criterion remains open. No v1.0.2 release is being published or checksum guessed.Local macOS validation using fresh checkouts of the two PR branches:
git clone --branch fix/652-homebrew-v101-archive-layout https://github.com/flooooooooooow/flow.git flow-verify git clone --branch fix/652-homebrew-v101-archive-layout https://github.com/flooooooooooow/homebrew-flow.git homebrew-flow-verify cmp flow-verify/packaging/homebrew/Formula/flow.rb homebrew-flow-verify/Formula/flow.rb brew style flow-verify/packaging/homebrew/Formula/flow.rb brew audit --strict --offline flow-verify/packaging/homebrew/Formula/flow.rb brew install --build-from-source ./flow-verify/packaging/homebrew/Formula/flow.rb brew test ./flow-verify/packaging/homebrew/Formula/flow.rbDo not merge as complete until that local install/test is reported, and coordinate both formula PR merges. Hosted workflows are not release qualification evidence.