Skip to content

Commit 3cf9755

Browse files
committed
test(e2e): 265's consumer manifest goes through a named *_HOST variable
00_fixture_path_hygiene refuses an inline `$(host_path …)` in a manifest heredoc, and it is right to: the manifest is FILE CONTENT, and on Git Bash a shell-spelled /tmp/... path is read by a native mcpp.exe as 'root of the current drive'. Naming the converted value is what makes the conversion visible where it is used rather than buried in an interpolation.
1 parent e7082c4 commit 3cf9755

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/e2e/265_pack_strips_but_stays_usable.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ PY
7474

7575
consume() { # <package dir> <expected token> — build a program against it and run
7676
local pkg="$1" want="$2" tag="$3"
77+
# Through a named *_HOST variable, not interpolated inline: the manifest
78+
# below is FILE CONTENT, and on Git Bash a shell-spelled /tmp/... path is
79+
# read by a native mcpp.exe as "root of the current drive". 00_fixture_path
80+
# _hygiene enforces the naming so the conversion is visible at the use site.
81+
local PKG_HOST
82+
PKG_HOST="$(host_path "$pkg")"
7783
rm -rf "$TMP/consumer"
7884
mkdir -p "$TMP/consumer/src"
7985
cat > "$TMP/consumer/src/main.cpp" <<'EOF'
@@ -86,7 +92,7 @@ EOF
8692
name = "consumer"
8793
version = "0.1.0"
8894
[dependencies]
89-
mathkit = { path = "$(host_path "$pkg")" }
95+
mathkit = { path = "$PKG_HOST" }
9096
[targets.consumer]
9197
kind = "bin"
9298
main = "src/main.cpp"

0 commit comments

Comments
 (0)