参考所有分组,完成尽量多的内容:收紧build source-map边界守卫

This commit is contained in:
cnc
2026-06-05 07:29:30 +08:00
parent 71676ac1be
commit bc80d74d1f
2 changed files with 8 additions and 1 deletions

View File

@@ -6,7 +6,8 @@ cd "$(dirname "$0")"
# LinuxCNC source basis: this guard ties native/source-link/WASM build entry # LinuxCNC source basis: this guard ties native/source-link/WASM build entry
# points to LinuxCNC Submakefile source ownership, source manifests, persistent # points to LinuxCNC Submakefile source ownership, source manifests, persistent
# build signatures, and source-backed WASM artifact ordering. It validates # build signatures, and source-backed WASM artifact ordering. It validates
# build policy only; it does not add CNC behavior or expand smoke parsing. # build policy only; it does not add CNC behavior, expand smoke parsing, or
# interpret G-code.
linuxcnc_root=${LINUXCNC_ROOT:-../linuxcnc} linuxcnc_root=${LINUXCNC_ROOT:-../linuxcnc}
linuxcnc_root=$(cd "$linuxcnc_root" && pwd) linuxcnc_root=$(cd "$linuxcnc_root" && pwd)
@@ -149,6 +150,8 @@ for phrase in [
"CONFIGURE_RULE_VERSION", "CONFIGURE_RULE_VERSION",
"CNC_SIM_ENABLE_SMOKE_BACKEND=OFF", "CNC_SIM_ENABLE_SMOKE_BACKEND=OFF",
"Node smoke before browser smoke", "Node smoke before browser smoke",
"does not interpret",
"G-code",
]: ]:
if phrase not in source_map: if phrase not in source_map:
raise SystemExit(f"docs/linuxcnc-build-source-map.md missing boundary phrase: {phrase}") raise SystemExit(f"docs/linuxcnc-build-source-map.md missing boundary phrase: {phrase}")

View File

@@ -49,6 +49,9 @@ behavior and must not expand the temporary smoke parser.
copied artifacts with `cmp -s`, and run Node smoke before browser smoke. copied artifacts with `cmp -s`, and run Node smoke before browser smoke.
- Build directory overrides must be non-empty, whitespace-free, and outside the - Build directory overrides must be non-empty, whitespace-free, and outside the
filesystem root. filesystem root.
- The build source-map guard validates LinuxCNC build-source ownership,
manifest partitions, and artifact ordering only; it does not interpret
G-code.
## Checks ## Checks
@@ -58,6 +61,7 @@ Run:
./check-linuxcnc-build-source-map.sh ./check-linuxcnc-build-source-map.sh
./test-native.sh ./test-native.sh
./test-linuxcnc-source-link.sh ./test-linuxcnc-source-link.sh
./build-wasm.sh
``` ```
`check-linuxcnc-build-source-map.sh` keeps this document, LinuxCNC build-source `check-linuxcnc-build-source-map.sh` keeps this document, LinuxCNC build-source