You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Bazel rules set for rust pass the same flags to clippy-driver as it would pass to rustc. This has worked till we hit a corner case (see bazelbuild/rules_rust#2447) where we set both --sysroot flag and SYSROOT env var and the --sysroot flag ends up in a param file that rustc correctly handles.
Reproducer
Create a file @program.params with --sysroot=""
Run SYSROOT="" clippy-driver @program.params
I expected to see the command not to fail because SYSROOT="" clippy-driver --sysroot works fine.
Summary
The Bazel rules set for rust pass the same flags to
clippy-driver
as it would pass torustc
. This has worked till we hit a corner case (see bazelbuild/rules_rust#2447) where we set both--sysroot
flag andSYSROOT
env var and the--sysroot
flag ends up in a param file that rustc correctly handles.Reproducer
@program.params
with--sysroot=""
SYSROOT="" clippy-driver @program.params
I expected to see the command not to fail because
SYSROOT="" clippy-driver --sysroot
works fine.Instead, it fails with
because
rust-clippy/src/driver.rs
Line 191 in 66c29b9
checks whether the args includes
--sysroot
but doesn't check whether@program.params
includes--sysroot
.Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: