@@ -41,15 +41,15 @@ import Filesystem.Path
4141import Filesystem.Path.CurrentOS
4242import System.Nix.Build
4343import System.Nix.Hash
44- import System.Nix.Path
44+ import System.Nix.StorePath
4545import System.Nix.Nar
4646import qualified System.Nix.ValidPath as VP
4747import System.Nix.Store.Remote
4848import System.Nix.Store.Remote.Logger
4949import System.Nix.Store.Remote.Types
5050import System.Nix.Store.Remote.Protocol
5151import System.Nix.Store.Remote.Util
52- import qualified System.Nix.GC as GC
52+ -- import qualified System.Nix.GC as GC
5353
5454import Data.Proxy
5555
@@ -142,7 +142,7 @@ withPath action = do
142142 (Just path) <- addTextToStore " hnix-store" " test" (HS. fromList [] ) False
143143 action path
144144
145- invalidPath = Path (hash " invalid" ) $ fromJust $ pathName " invalid"
145+ invalidPath = StorePath (hash " invalid" ) $ fromJust $ makeStorePathName " invalid"
146146{-
147147 - broken
148148
@@ -159,6 +159,7 @@ withDrv action = withBuilder $ \builder -> withBash $ \bash -> do
159159 action path d
160160-}
161161
162+ {-
162163lal = do
163164 --fp <- fmap init <$> liftIO $ P.readProcess "which" ["bash"] ""
164165 --parent <- liftIO getCanonicalTemporaryDirectory
@@ -187,6 +188,7 @@ lal = do
187188
188189 --liftIO $ removeDirectoryRecursive pth
189190
191+ -}
190192{-
191193withBash action = do
192194 fp <- fmap init <$> liftIO $ P.readProcess "which" ["bash"] ""
@@ -228,9 +230,9 @@ spec_protocol = Hspec.around withNixDaemon $ do
228230 itRights " check=True repair=True" $ do
229231 verifyStore True True `shouldReturn` False
230232
233+ {-
231234 context "addTextToStore" $ do
232235 itRights "adds text to store" $ withPath $ const return ()
233-
234236 context "isValidPathUncached" $ do
235237 itRights "validates path" $ withPath $ \path -> do
236238 (isValidPathUncached path) `shouldReturn` True
@@ -242,7 +244,7 @@ spec_protocol = Hspec.around withNixDaemon $ do
242244
243245 context "queryPathInfoUncached" $ do
244246 itRights "queries path info" $ withPath $ queryPathInfoUncached
245-
247+ -}
246248 {-
247249 context "ensurePath" $ do
248250 itRights "simple ensure" $ withPath $ ensurePath
@@ -286,7 +288,6 @@ spec_protocol = Hspec.around withNixDaemon $ do
286288 itLefts "build Repair" $ withPath $ \path -> do
287289 let pathSet = HS.fromList [path]
288290 buildPaths pathSet Repair
289- -}
290291
291292 context "roots" $ do
292293 context "findRoots" $ do
@@ -296,6 +297,7 @@ spec_protocol = Hspec.around withNixDaemon $ do
296297 roots <- findRoots
297298 roots `shouldSatisfy` ((==1) . M.size)
298299
300+ -}
299301
300302 {-
301303 context "optimiseStore" $ do
0 commit comments