mirror of
https://github.com/Homebrew/BrewUI.git
synced 2026-10-02 08:34:36 +08:00
Fix pre-commit hook path after Brew -> Homebrew folder rename
The BrewUILint step scanned 'Brew/', which no longer exists after the source folder was renamed to 'Homebrew/', so the hook errored on every commit. Point the whole-tree scan at 'Homebrew/'. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
2fcdcb2ea4
commit
e0891c96e2
+2
-2
@@ -18,7 +18,7 @@ if ! command -v mint >/dev/null 2>&1; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# BrewUILint runs over the WHOLE tree (Brew + Sources), not just the staged files. Its
|
||||
# BrewUILint runs over the WHOLE tree (Homebrew + Sources), not just the staged files. Its
|
||||
# nonisolated-extension rule needs to see every `nonisolated` type declaration to flag a bad
|
||||
# extension on it, and that declaration may live in an unstaged file in another package. Tests
|
||||
# (Tests/) are intentionally excluded. Builds the tool first (cached in Tools/BrewUILint/.build).
|
||||
@@ -29,7 +29,7 @@ if ! xcrun swift build --package-path Tools/BrewUILint -c release >/dev/null 2>&
|
||||
fi
|
||||
brewuilint_bin="$(xcrun swift build --package-path Tools/BrewUILint -c release --show-bin-path)/BrewUILint"
|
||||
set +e
|
||||
brewuilint_output="$(find Brew Sources -name '*.swift' -print0 | xargs -0 "${brewuilint_bin}" 2>&1)"
|
||||
brewuilint_output="$(find Homebrew Sources -name '*.swift' -print0 | xargs -0 "${brewuilint_bin}" 2>&1)"
|
||||
brewuilint_status=$?
|
||||
set -e
|
||||
if [[ ${brewuilint_status} -ne 0 ]]; then
|
||||
|
||||
Reference in New Issue
Block a user