mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-17 15:34:54 +00:00
follow the vendored tree to its new path
The move to vendor/ left four references behind. check-codex-path-deps.sh
hard-failed every build ("Expected both code-rs/ and codex-rs/"), and the
auto-review scope excluded a prefix that now matches nothing — so all 5,624
vendored files were eligible for review context. That exclusion is vendor/
now, which covers whatever else we vendor later.
This commit is contained in:
@@ -12,18 +12,18 @@ if command -v git >/dev/null 2>&1; then
|
||||
fi
|
||||
|
||||
CODE_RS_DIR="$ROOT_DIR/code-rs"
|
||||
FORBIDDEN_DIR="$ROOT_DIR/codex-rs"
|
||||
FORBIDDEN_DIR="$ROOT_DIR/vendor/codex"
|
||||
|
||||
if [[ ! -d "$CODE_RS_DIR" || ! -d "$FORBIDDEN_DIR" ]]; then
|
||||
echo "ERROR: Expected both code-rs/ and codex-rs/ to exist next to this script." >&2
|
||||
echo "ERROR: Expected both code-rs/ and vendor/codex/ to exist next to this script." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
violations=0
|
||||
|
||||
echo "Scanning Cargo manifests under code-rs/ for forbidden ../codex-rs references…"
|
||||
echo "Scanning Cargo manifests under code-rs/ for forbidden vendor/codex references…"
|
||||
while IFS= read -r -d '' cargo_file; do
|
||||
matches=$(grep -nE '\\.\\./codex-rs|codex-[^\"]*\s*=\s*\{[^}]*path' "$cargo_file" || true)
|
||||
matches=$(grep -nE 'vendor/codex|codex-[^\"]*\s*=\s*\{[^}]*path' "$cargo_file" || true)
|
||||
if [[ -z "$matches" ]]; then
|
||||
continue
|
||||
fi
|
||||
@@ -55,8 +55,8 @@ fi
|
||||
|
||||
if [[ $violations -ne 0 ]]; then
|
||||
echo "" >&2
|
||||
echo "ERROR: Forbidden ../codex-rs path dependencies detected. Remove them before proceeding." >&2
|
||||
echo "ERROR: Forbidden vendor/codex path dependencies detected. Remove them before proceeding." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "✅ No forbidden ../codex-rs dependencies detected in code-rs/."
|
||||
echo "✅ No forbidden vendor/codex dependencies detected in code-rs/."
|
||||
|
||||
Reference in New Issue
Block a user