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 onc667171, 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 <noreply@anthropic.com>
This commit is contained in:
parent
c66717136f
commit
75153b09b1
1 changed files with 11 additions and 1 deletions
12
.github/workflows/lint.yml
vendored
12
.github/workflows/lint.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue