Skip to content

Commit 8c61044

Browse files
committed
Ensure tidy never updates Cargo.lock
Otherwise the results may be outdated compared to a build at a later time. Also disable checking for the backtrace workspace until Cargo.lock is committed.
1 parent 01920a0 commit 8c61044

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/tools/tidy/src/deps.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub(crate) const WORKSPACES: &[(&str, ExceptionList, Option<(&[&str], &[&str])>)
5353
),
5454
// tidy-alphabetical-start
5555
("compiler/rustc_codegen_gcc", EXCEPTIONS_GCC, None),
56-
("library/backtrace", &[], None),
56+
//("library/backtrace", &[], None), // FIXME uncomment once rust-lang/backtrace#562 lands
5757
//("library/portable-simd", &[], None), // FIXME uncomment once rust-lang/portable-simd#363 has been synced back to the rust repo
5858
//("library/stdarch", EXCEPTIONS_STDARCH, None), // FIXME uncomment once rust-lang/stdarch#1462 lands
5959
("src/bootstrap", EXCEPTIONS_BOOTSTRAP, None),
@@ -465,7 +465,8 @@ pub fn check(root: &Path, cargo: &Path, bad: &mut bool) {
465465
let mut cmd = cargo_metadata::MetadataCommand::new();
466466
cmd.cargo_path(cargo)
467467
.manifest_path(root.join(workspace).join("Cargo.toml"))
468-
.features(cargo_metadata::CargoOpt::AllFeatures);
468+
.features(cargo_metadata::CargoOpt::AllFeatures)
469+
.other_options(vec!["--locked".to_owned()]);
469470
let metadata = t!(cmd.exec());
470471

471472
check_license_exceptions(&metadata, exceptions, bad);

0 commit comments

Comments
 (0)