feat(graph): validate Windows path case and reserved names
This commit is contained in:
1 parent
b55aca328a
commit
7772697a48
6 files changed
+115
-9
No files matched your search
@@ -290,6 +290,8 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
|
||||
|
||||
- **Wave 98 (Signed Installer Archives)**: `vbs install --archive FILE --signing-key SEED` now writes `<archive>.sha256` (sha256sum format), `<archive>.sig` (Ed25519 detached signature hex) and `<archive>.pub` (signer key hex), and fails closed when no Ed25519 backend is available. The install test verifies the checksum prefix, the signature/key lengths, and the signature over the archive bytes when signing is available.
|
||||
|
||||
- **Wave 99 (Windows Path & Case-Sensitivity Validation)**: graph lowering for Windows targets rejects case-insensitive output collisions (`Tool` vs `tool` → `Tool.exe`/`tool.exe`) and reserved device names (`CON`, `NUL`, `COM1`, …), with explicit diagnostics. The Wine regression test now also proves PE case-insensitive file semantics (`fopen("CASE_A.TXT")` finds `case_a.txt`) and asserts both validation errors.
|
||||
|
||||
## Remaining future scope
|
||||
|
||||
- **Superiority plan ([22-superiority-and-gaps.md](../roadmap/22-superiority-and-gaps.md), 2026-12-05)**: revised platform strategy - **macOS deferred**, **Windows via MinGW-w64 cross-compilation + Wine execution** (`dev cpp-gcc -p pkgsCross.mingwW64.stdenv.cc`, `dev cpp-gcc -p wine64`), native MSVC deferred; plus packaging parity (ZIP/DEB/RPM), IDE ecosystem, migration tooling, test-runner parity, benchmarks, CI runners, and remote execution in prioritized order.
|
||||
|
||||
@@ -102,4 +102,5 @@ Base HEAD: `fe0d1a6`
|
||||
| Wave 96 (Wine-first Windows target) | MinGW-w64 cross discovery, PE artifact naming, `--target-os/--target-arch`, Wine test runner | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; Windows target cross-build + Wine test pass; full CTest 8/8) | `src/Toolchain/Driver.cpp`, `src/Graph/Graph.cpp`, `src/Main.cpp`, `tests/FullV1Tests.cpp`, docs |
|
||||
| Wave 97 (ZIP & DEB generators) | `--archive-format zip|deb`: stored ZIP and Debian ar package with metadata; tested structurally and validated with real `dpkg-deb` | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; install test passes, full CTest 8/8) | `include/Void/Build/Install/Installer.hpp`, `src/Install/Installer.cpp`, `src/Main.cpp`, `tests/FullV1Tests.cpp`, docs |
|
||||
| Wave 98 (Signed installer archives) | `--signing-key` writes `.sha256`/`.sig`/`.pub` for the installer archive and fails closed without a backend | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; install test passes, full CTest 8/8) | `include/Void/Build/Install/Installer.hpp`, `src/Install/Installer.cpp`, `src/Main.cpp`, `tests/FullV1Tests.cpp`, docs |
|
||||
| Wave 99 (Windows path semantics) | Case-insensitive output collision + reserved device name validation for Windows targets; Wine case-insensitivity assertion | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; Windows regression test passes, full CTest 8/8) | `src/Graph/Graph.cpp`, `tests/FullV1Tests.cpp`, docs |
|
||||
| Future (Plan 20 Slice 3 / Tracks C, E3 editor extensions) |"}] Live `conan` CLI verification; macOS/Windows/cross-compile; binary-variant signing and key distribution; daemon-side dependency materialization and editor plugins; `Void::Net`/`Void::Sqlite` alignment | PLANNED (unimplemented) | [21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md), [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md) |
|
||||
@@ -1399,6 +1399,19 @@ dev cpp-gcc -c ctest --test-dir build/pinned --output-on-failure
|
||||
over the archive bytes are verified; otherwise the failure path is asserted.
|
||||
- Full CTest: **8 / 8 passed** in 281.48 s.
|
||||
|
||||
## Windows Path & Case-Sensitivity Validation (GCC 16.2, pin `0002e74`)
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -p pkgsCross.mingwW64.stdenv.cc -p wine64 -c build/pinned/bin/vbs_v1_tests \
|
||||
--filter track_c_windows_target_cross_build_and_wine_test --no-color
|
||||
```
|
||||
|
||||
- The Windows test binary creates `case_a.txt` and opens `CASE_A.TXT`; it passes only because
|
||||
Wine applies Windows case-insensitive filesystem semantics.
|
||||
- A project declaring `Tool` and `tool` executables fails with `differ only by case`, and a `CON`
|
||||
target fails with `reserved Windows device name`.
|
||||
- Regression test: **passed** (14.12 s); full CTest: **8 / 8 passed** in 277.56 s.
|
||||
|
||||
## Limits and Unrun Checks
|
||||
|
||||
1. **HTTPS git fetch**: the host shell is proxy-restricted, but the Docker container could clone `https://git.faumaray.com/Void/VoidLibrary.git`; the pinned commit `3e254055e081a104f08df68dde39711bc7813518` was fetched directly for the verification above. A separate configure against the local `/home/faumaray/Projects/Library` checkout via `VBS_VOID_SOURCE_DIR` also succeeded (development-only override, checkout unmodified).
|
||||
|
||||
Reference in new issue
Block a user