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 d35aa18 commit 67ea0d0Copy full SHA for 67ea0d0
hnix-store-nar/src/System/Nix/Nar/Streamer.hs
@@ -99,7 +99,10 @@ streamNarIOWithOptions opts effs basePath yield = do
99
if Nar.optUseCaseHack opts
100
then undoCaseHack f
101
else f
102
- in Map.insert name f acc
+ in
103
+ case Map.insertLookupWithKey (\_ n _ -> n) name f acc of
104
+ (Nothing, newMap) -> newMap
105
+ (Just conflict, _) -> error $ "File name collision between " ++ (path </> name) ++ " and " ++ (path </> conflict)
106
) Map.empty fs
107
yield $ strs ["type", "directory"]
108
forM_ (Map.toAscList entries) $ \(unhacked, original) -> do
0 commit comments