We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5727827 commit 05a42c4Copy full SHA for 05a42c4
hnix-store-core/src/System/Nix/Internal/StorePath.hs
@@ -204,7 +204,7 @@ parsePath expectedRoot x =
204
then pure rootDir'
205
else Left $ "Root store dir mismatch, expected" <> expectedRootS <> "got" <> rootDir'
206
in
207
- StorePath <$> coerce storeHash <*> name
+ either Left (pure $ StorePath <$> coerce storeHash <*> name) storeDir
208
209
pathParser :: StoreDir -> Parser StorePath
210
pathParser expectedRoot = do
0 commit comments