Bypass git describe caching in brew.sh

Probably a good idea to work out a cleaner way with upstream.
This commit is contained in:
Zhaofeng Li
2024-05-27 13:30:45 -06:00
parent c9c4eb588b
commit c481a6255a
+3
View File
@@ -306,6 +306,9 @@ let
brew_sh="$out/Library/Homebrew/brew.sh"
chmod u+w "$out/Library/Homebrew" "$brew_sh"
sed -i -e 's/^HOMEBREW_VERSION=.*/HOMEBREW_VERSION="${brew.version}"/g' "$brew_sh"
# 4.3.1: Clear GIT_REVISION to bypass caching mechanism
sed -i -e 's/^GIT_REVISION=.*/GIT_REVISION=""; HOMEBREW_VERSION="${brew.version}"/g' "$brew_sh"
'');
in {
options = {