Repository navigation
fix(homebrew): pick the install layout from the archive for 2.x (#652) - #1456
Merged
Merged
Conversation
The stable path installed the Python src/ tree whenever the build was not HEAD, so a 2.x release archive, which has VERSION and tools/ and no src/, would fail to install once the formula points at it. The formula now uses the self-hosted layout when the archive has a VERSION file. The README notes the license change the first 2.x formula update needs.
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, retargeted to the v2.0.0 release (decision recorded in #1455).
Problem
The stable branch of
packaging/homebrew/Formula/flow.rbinstalled the Pythonsrc/tree whenever the build was not HEAD. A 2.x release archive hasVERSIONandtools/and nosrc/, so the formula would fail on the first 2.x archive.Change
VERSIONpresent (2.x, HEAD) installs the self-hosted CLI and runsflow versionto build it; otherwise (v1.0.1) installssrc/. The url, sha256 and license still name the published v1.0.1 archive.license :cannot_represent, sinceLICENSEis proprietary from 2.0.0.Proof (macOS 26 arm64, Homebrew 7.0.8, throwaway local tap, removed afterwards)
Baseline: the old formula's non-HEAD path runs
libexec.install "src", which agit archiveof main does not contain.With this formula:
brew style: no offenses.brew audit --strict --online: exit 0.brew install --build-from-sourceexit 0,brew testexit 0,flow versionprintsFlow 1.0.1.git archive --prefix=flow-2.0.0/from main55dc81b7(sha256b12410dd...28c9), url pointed at it withversion "2.0.0": install exit 0,brew testexit 0,flow versionprintsFlow 2.0.0, andflow run hello.flowbuilds and prints its line, exit 0.No tag, release or tap push is made here. After merge the tap formula is synced byte for byte.
Risk: the v1.0.1 install is unchanged in behaviour (shown above).