Skip to content

Commit f86f49b

Browse files
larsxschneidergitster
authored andcommitted
travis-ci: ask homebrew for its path instead of hardcoding it
The TravisCI macOS build is broken because homebrew (a macOS dependency manager) changed its internal directory structure [1]. This is a problem because we modify the Perforce dependencies in the homebrew repository before installing them. Fix it by asking homebrew for its path instead of hardcoding it. [1] Homebrew/brew@0a09ae3 Signed-off-by: Lars Schneider <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 522354d commit f86f49b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ before_install:
5151
FORMULA=$1
5252
SHA=$(brew fetch --force $FORMULA 2>&1 | grep ^SHA256: | cut -d ' ' -f 2)
5353
sed -E -i.bak "s/sha256 \"[0-9a-f]{64}\"/sha256 \"$SHA\"/g" \
54-
/usr/local/Library/Taps/homebrew/homebrew-binary/$FORMULA.rb
54+
"$(brew --repository homebrew/homebrew-binary)/$FORMULA.rb"
5555
}
5656
brew update --quiet
5757
brew tap homebrew/binary --quiet

0 commit comments

Comments
 (0)