fix(build): skip Codex schema check for Claude-only installs

Install and update always build every client package, so a Claude-only
run warned that the Codex CLI was missing even though no Codex package is
installed. Add -SkipCodexSchema / --skip-codex-schema to the builds and
pass it from install and update when only Claude is selected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Julian LechnerandClaude Opus 5.5 committed 2026-11-16 09:37:14 +01:00
1 parent adc4745d10
commit 3fcd7bcbfd
9 files changed
+34 -6

No files matched your search

+11
View File
@@ -45,6 +45,17 @@ wait "$second_build" || { printf 'Parallel build 2 failed:\n%s\n' "$(cat "$work/
[ "$(cd "$baseline/generated" && find . -type f | sort)" = "$expected_files" ] || { printf 'generated/ is incomplete after two parallel builds.\n' >&2; exit 1; }
[ -z "$(find "$baseline" -maxdepth 1 -name 'generated.*' -print -quit)" ] || { printf 'Parallel builds left a build directory, retired tree, or lock behind.\n' >&2; exit 1; }
# A Codex CLI that rejects every config proves the schema check runs by default and is skipped on request.
mkdir -p "$work/fake-codex"
printf '#!/usr/bin/env bash\nexit 1\n' > "$work/fake-codex/codex"
chmod +x "$work/fake-codex/codex"
PATH="$work/fake-codex:$PATH" bash "$baseline/scripts/commands/build.sh" --summary --skip-codex-schema >/dev/null 2>&1 \
|| { printf 'The build must skip the Codex schema check on request.\n' >&2; exit 1; }
if PATH="$work/fake-codex:$PATH" bash "$baseline/scripts/commands/build.sh" --summary >/dev/null 2>&1; then
printf 'The build must run the Codex schema check unless it is skipped.\n' >&2
exit 1
fi
mutate_invalid_json() {
printf '} this is not json {' >> "$1/adapters/claude/config/settings.json"
}