mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
Merge pull request #274631 from artemist/replace-workspace-lints
rustPlatform.importCargoLock: copy lints from workspace
This commit is contained in:
commit
92960168a5
@ -96,6 +96,13 @@ def main() -> None:
|
||||
workspace_manifest, crate_manifest["target"][key]
|
||||
)
|
||||
|
||||
if (
|
||||
"lints" in crate_manifest
|
||||
and "workspace" in crate_manifest["lints"]
|
||||
and crate_manifest["lints"]["workspace"] is True
|
||||
):
|
||||
crate_manifest["lints"] = workspace_manifest["lints"]
|
||||
|
||||
if not changed:
|
||||
return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user