mirror of
https://github.com/libracoder/kiri.git
synced 2026-12-06 23:32:31 +09:00
Fix two Linux defects found against origin/main: 1. Build failure with `--features window` on Linux: `main()` in `crates/kiri/src/main.rs` moved `raw_args` when building `args` before `fontconfig::reexec_if_bypassed(&raw_args)` borrowed it under `#[cfg(all(target_os = "linux", feature = "window"))]`. Slice `raw_args.get(1..).unwrap_or(&[])` (matching `forge_args` above) so `raw_args` stays intact, and run `cargo check --locked -p kiri --features window --tests` in `.github/workflows/tests.yml`'s `unit` job so this stays guarded in CI. 2. Ext4 test flake in `daemon::buildports::tests::what_a_view_keeps_of_a_pulled_layer_goes_with_it_and_is_checked`: `std::fs::write` overwrote 6 bytes in place with the same length within Linux ext4's ~4 ms mtime tick, keeping an identical `(size, mtime_ns, ctime_ns, ino)` stat tuple so `Store::layer_tar` skipped re-hashing. Advance the tampered file's mtime explicitly by 60 s and assert `ports.unpacked == 1` so the test exercises digest verification and re-unpacking deterministically.