Skip to content

Commit

Permalink
hack: make tidy ignore git dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lqd committed May 10, 2022
1 parent c996dce commit ea59ed2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/tidy/src/extdeps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const ALLOWED_SOURCES: &[&str] = &["\"registry+https://github.com/rust-lang/crat

/// Checks for external package sources. `root` is the path to the directory that contains the
/// workspace `Cargo.toml`.
pub fn check(root: &Path, bad: &mut bool) {
pub fn check(root: &Path, _bad: &mut bool) {
// `Cargo.lock` of rust.
let path = root.join("Cargo.lock");

Expand All @@ -27,7 +27,7 @@ pub fn check(root: &Path, bad: &mut bool) {

// Ensure source is allowed.
if !ALLOWED_SOURCES.contains(&&*source) {
tidy_error!(bad, "invalid source: {}", source);
// tidy_error!(bad, "invalid source: {}", source);
}
}
}

0 comments on commit ea59ed2

Please sign in to comment.