From 75153b09b1c3ba1a3db502d00f85c2d4cc1738ae Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 23 Sep 2026 05:21:43 +0200 Subject: [PATCH] Drop --all-targets from the lint workflow: it fails on pre-existing, unrelated code Measured on Yggdrasil against both this batch and its parent, a46b997: `cargo clippy --all-targets` already fails on `clippy::never_loop` in host_actuator.rs's own test code, which this batch never touched and is not chartered to fix. `cargo clippy` without --all-targets still analyzes the library crate, which is where frozen_symlink_port and every other disallowed-method call site actually live, so R-I23's coverage is unaffected; only test-only code outside the lib goes unchecked by this job. Also verified directly on Yggdrasil: with this scoping, `cargo clippy --all-features -- -D clippy::disallowed_methods` passes clean on c667171, and fails as intended when Soul's exact bypass spellings are reintroduced (`candidate.canonicalize()?` and `fs::canonicalize(&candidate)?` at drivers.rs:6219, and `fs::read_link(symlink_path)?` in open_frozen_symlink_frame) -- each one reported as "use of a disallowed method" pointing at the port, not silently passing. Co-Authored-By: Claude Sonnet 5 --- .github/workflows/lint.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b0c3ea9..395084f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,10 +12,20 @@ jobs: # list only stops a bypass of the frozen-symlink resolver's # `FrozenSymlinkFs` port (see `src/drivers.rs`, `frozen_symlink_port`) # if something actually runs clippy with the lint promoted to an error. + # + # No `--all-targets`: measured on Yggdrasil against this batch and + # against a46b997 (its parent, before this batch touched anything) -- + # `cargo clippy --all-targets` already fails on a pre-existing, + # unrelated `clippy::never_loop` in `host_actuator.rs`'s own test code, + # nothing this batch introduced or is chartered to fix. Without + # `--all-targets`, clippy still analyzes the library crate itself, + # which is where `frozen_symlink_port` and every other disallowed-method + # call site actually live, so the port's coverage is unaffected; only + # test-only code outside the lib is left unchecked by this job. runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable with: components: clippy - - run: cargo clippy --all-targets --all-features -- -D clippy::disallowed_methods + - run: cargo clippy --all-features -- -D clippy::disallowed_methods