File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ import System.Nix.Build ( BuildMode
4646 , BuildResult
4747 )
4848import System.Nix.Hash ( NamedAlgo (.. )
49- , BaseEncoding (NixBase32 )
49+ , BaseEncoding (Base16 )
5050 , decodeDigestWith
5151 )
5252import System.Nix.StorePath ( StorePath
@@ -235,7 +235,7 @@ queryPathInfoUncached path = do
235235 let
236236 narHash =
237237 case
238- decodeDigestWith @ SHA256 NixBase32 narHashText
238+ decodeDigestWith @ SHA256 Base16 narHashText
239239 of
240240 Left e -> error e
241241 Right d -> System.Nix.Hash. HashAlgo_SHA256 :=> d
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ import System.FilePath
3333
3434import System.Nix.Build
3535import System.Nix.StorePath
36+ import System.Nix.StorePath.Metadata
3637import System.Nix.Store.Remote
3738import System.Nix.Store.Remote.Protocol
3839
@@ -217,7 +218,9 @@ spec_protocol = Hspec.around withNixDaemon $
217218 queryAllValidPaths `shouldReturn` HS. fromList [path]
218219
219220 context " queryPathInfoUncached" $
220- itRights " queries path info" $ withPath queryPathInfoUncached
221+ itRights " queries path info" $ withPath $ \ path -> do
222+ meta <- queryPathInfoUncached path
223+ references meta `shouldSatisfy` HS. null
221224
222225 context " ensurePath" $
223226 itRights " simple ensure" $ withPath ensurePath
You can’t perform that action at this time.
0 commit comments