mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
tidy: Ignore [replace]’d packages in the duplicate package lint.
This commit is contained in:
parent
5a624ff956
commit
31287d4d90
1 changed files with 2 additions and 0 deletions
|
@ -330,6 +330,8 @@ def check_lock(file_name, contents):
|
||||||
|
|
||||||
packages_by_name = {}
|
packages_by_name = {}
|
||||||
for package in content.get("package", []):
|
for package in content.get("package", []):
|
||||||
|
if "replace" in package:
|
||||||
|
continue
|
||||||
source = package.get("source", "")
|
source = package.get("source", "")
|
||||||
if source == r"registry+https://github.com/rust-lang/crates.io-index":
|
if source == r"registry+https://github.com/rust-lang/crates.io-index":
|
||||||
source = "crates.io"
|
source = "crates.io"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue