Skip to content

Commit 5fddf3c

Browse files
committed
Reorder references in makeTextPath
1 parent 5978255 commit 5fddf3c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hnix-store-core/src/System/Nix/ReadonlyStore.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module System.Nix.ReadonlyStore where
88

99
import Data.ByteString ( ByteString )
1010
import qualified Data.ByteString as BS
11+
import Data.List ( sort )
1112
import qualified Data.Text as T
1213
import qualified Data.HashSet as HS
1314
import Data.Text.Encoding
@@ -41,7 +42,7 @@ makeTextPath
4142
makeTextPath fp nm h refs = makeStorePath fp ty h nm
4243
where
4344
ty =
44-
BS.intercalate ":" ("text" : fmap storePathToRawFilePath (HS.toList refs))
45+
BS.intercalate ":" ("text" : sort (fmap storePathToRawFilePath (HS.toList refs)))
4546

4647
makeFixedOutputPath
4748
:: forall hashAlgo

0 commit comments

Comments
 (0)