Skip to content

Commit a21980a

Browse files
committed
fix: use working target in hermetic test script
Test 3 was trying to build //examples/basic:hello_component_wasm_lib_release_wasm_base which has a broken platform transition. Switch to //examples/basic:hello_component_release which is a stable, working target that properly builds WASM components.
1 parent c87477f commit a21980a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.hermetic_test.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ test_no_system_paths() {
7474
echo "-------------------------------------"
7575

7676
echo " Building WASM target for analysis..."
77-
if ! bazel build //examples/basic:hello_component_wasm_lib_release_wasm_base 2>&1 | tail -2; then
77+
if ! bazel build //examples/basic:hello_component_release 2>&1 | tail -2; then
7878
echo -e "${RED}✗ Build failed, cannot analyze${NC}"
7979
return 1
8080
fi
8181

8282
# Get action details for the WASM build
8383
echo " Analyzing build actions for system path references..."
84-
ACTIONS=$(bazel aquery //examples/basic:hello_component_wasm_lib_release_wasm_base \
85-
'mnemonic("RustcCompile|CppLink", //examples/basic:hello_component_wasm_lib_release_wasm_base)' 2>&1 || true)
84+
ACTIONS=$(bazel aquery //examples/basic:hello_component_release \
85+
'mnemonic("RustcCompile|CppLink", //examples/basic:hello_component_release)' 2>&1 || true)
8686

8787
# Check for suspicious system paths
8888
SYSTEM_PATHS=("/usr/local" "/opt/homebrew" "/opt/local")

0 commit comments

Comments
 (0)