From f9481010cd4440948eb3a5d3a04d2c11b1d845b1 Mon Sep 17 00:00:00 2001 From: Yusuf Bera Ertan Date: Sat, 25 Mar 2023 22:42:32 +0300 Subject: [PATCH] fix(rust): filter out duplicate git sources in subsystem attrs --- src/subsystems/rust/translators/cargo-lock/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/subsystems/rust/translators/cargo-lock/default.nix b/src/subsystems/rust/translators/cargo-lock/default.nix index d73461ee..1b9c22e0 100644 --- a/src/subsystems/rust/translators/cargo-lock/default.nix +++ b/src/subsystems/rust/translators/cargo-lock/default.nix @@ -312,10 +312,12 @@ in { cargoPackages; in l.foldl' l.recursiveUpdate {} allPackageReplacements; - gitSources = l.map (src: src.value) ( - l.filter - (src: src.type == "git") - (l.map parseSource parsedDeps) + gitSources = l.unique ( + l.map (src: src.value) ( + l.filter + (src: src.type == "git") + (l.map parseSource parsedDeps) + ) ); meta = l.foldl' l.recursiveUpdate {} ( l.map