返回 CodeWhale
check-portable-debug-diagnostics.sh
根目录 / scripts / check-portable-debug-diagnostics.sh
1 #!/bin/sh
2 # FEAT-029: compile the complete portable debug closure without TUI.
3 set -eu
4 cd "$(dirname "$0")/.."
5
6 # Normal graph (not a source-token approximation). A forbidden transitive
7 # dependency fails even if the compiler would otherwise accept the facade.
8 graph=$(cargo tree --locked -p codewhale-portable-debug-diagnostics --edges normal --prefix none)
9 printf '%s\n' "$graph"
10 if printf '%s\n' "$graph" | grep -Eq '^codewhale-tui([[:space:]]|$)'; then
11 echo '[portable-debug-diagnostics] FAIL: TUI is a normal dependency' >&2
12 exit 1
13 fi
14 printf '%s\n' '[portable-debug-diagnostics] normal dependency graph has no codewhale-tui'
15
16 # The package includes the real group module and every leaf/helper by Rust
17 # #[path] attributes. It uses actual contract-owned result/action shapes.
18 cargo check --locked -p codewhale-portable-debug-diagnostics --lib --no-default-features
19 sh scripts/with-hermetic-test-home.sh cargo test -p codewhale-portable-debug-diagnostics --lib --locked -- --format=pretty
20
20 lines BASH