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:
2026-08-07 21:52:03 -07:00
parent 901a81abe9
commit e45a1532a5
4 changed files with 26 additions and 26 deletions
+6 -6
View File
@@ -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/."