Skip to content

Commit

Permalink
Bypass git describe caching in brew.sh
Browse files Browse the repository at this point in the history
Probably a good idea to work out a cleaner way with upstream.
  • Loading branch information
zhaofengli committed May 23, 2024
1 parent 91a553f commit 2a71c43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 2a71c43

Please sign in to comment.