Skip to content

Commit

Permalink
Reorder references in makeTextPath
Browse files Browse the repository at this point in the history
  • Loading branch information
layus committed Mar 24, 2021
1 parent 5978255 commit 5fddf3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hnix-store-core/src/System/Nix/ReadonlyStore.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module System.Nix.ReadonlyStore where

import Data.ByteString ( ByteString )
import qualified Data.ByteString as BS
import Data.List ( sort )
import qualified Data.Text as T
import qualified Data.HashSet as HS
import Data.Text.Encoding
Expand Down Expand Up @@ -41,7 +42,7 @@ makeTextPath
makeTextPath fp nm h refs = makeStorePath fp ty h nm
where
ty =
BS.intercalate ":" ("text" : fmap storePathToRawFilePath (HS.toList refs))
BS.intercalate ":" ("text" : sort (fmap storePathToRawFilePath (HS.toList refs)))

makeFixedOutputPath
:: forall hashAlgo
Expand Down

0 comments on commit 5fddf3c

Please sign in to comment.