Skip to content

Commit 0838a36

Browse files
committed
[#198] Make nar implementation compatible with the original one
Problem: this implementation of nar made non-identical archives with the original implementation Solution: doesn't treat to directory symlinks as they are directories
1 parent 72752f4 commit 0838a36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hnix-store-core/src/System/Nix/Internal/Nar/Streamer.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ streamNarIO effs basePath yield = do
7979
yield $ int fSize
8080
yieldFile path fSize
8181

82-
when isDir $ do
82+
when (isDir && not isSymLink) $ do
8383
fs <- IO.liftIO (Nar.narListDir effs path)
8484
yield $ strs ["type", "directory"]
8585
forM_ (sort fs) $ \f -> do

0 commit comments

Comments
 (0)