9c473d6a51
The web-wasm-freshness gate (#93) false-failed because the Bevy wasm build baked in machine-specific absolute source paths — the cargo registry (/home/<user>/.cargo/registry/...), the rustup std sources (~/.rustup/...), and this checkout — so CI's rebuild (under /workspace, /root) never matched the committed bytes even with identical pinned tool versions. build_wasm.sh now exports CARGO_ENCODED_RUSTFLAGS with three --remap-path-prefix rules (cargo home -> /cargo, rustup home -> /rustup, repo -> /build) so the embedded paths are identical on any machine. It re-states the getrandom_backend cfg because a *_RUSTFLAGS env var replaces (not merges with) .cargo/config.toml's target rustflags. Regenerated all four artifacts with the remap applied — verified zero machine-specific paths remain (only canonical /cargo + /rustup prefixes), which is the precondition for the gate's byte-for-byte rebuild-and-diff to match across machines. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
245 KiB
245 KiB