Skip to content

Commit

Permalink
Merge pull request #374 from tejing1/fix-npmdepsversion
Browse files Browse the repository at this point in the history
count npmDepsHash when counting hashes
  • Loading branch information
ryantm committed Dec 20, 2023
2 parents 47ae71a + 2749950 commit 2877dc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Nix.hs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ numberOfFetchers derivationContents =
-- Sum the number of things that look like fixed-output derivation hashes
numberOfHashes :: Text -> Int
numberOfHashes derivationContents =
sum $ map countUp ["sha256 =", "sha256=", "cargoSha256 =", "cargoHash =", "vendorSha256 =", "vendorHash =", "hash ="]
sum $ map countUp ["sha256 =", "sha256=", "cargoSha256 =", "cargoHash =", "vendorSha256 =", "vendorHash =", "hash =", "npmDepsHash ="]
where
countUp x = T.count x derivationContents

Expand Down

0 comments on commit 2877dc0

Please sign in to comment.