tidy: Ignore [replace]’d packages in the duplicate package lint.

This commit is contained in:
Simon Sapin 2017-02-14 23:55:20 +01:00
parent 5a624ff956
commit 31287d4d90

View file

@ -330,6 +330,8 @@ def check_lock(file_name, contents):
packages_by_name = {}
for package in content.get("package", []):
if "replace" in package:
continue
source = package.get("source", "")
if source == r"registry+https://github.com/rust-lang/crates.io-index":
source = "crates.io"