haskell-nix / hnix-store

Haskell implementation of the Nix store
Apache License 2.0
85 stars 23 forks source link

[#198] Make nar implementation compatible with the original one #201

Closed s-and-witch closed 1 year ago

s-and-witch commented 1 year ago

Problem: this implementation of nar made non-identical archives with the original implementation

Solution: doesn't treat the directory symlinks as they are directories

See https://github.com/haskell-nix/hnix-store/issues/198#issuecomment-1365911042 for the MRE

domenkozar commented 1 year ago

Can you also make a test case?

domenkozar commented 1 year ago

https://github.com/haskell-nix/hnix-store/blob/master/hnix-store-core/tests/NarFormat.hs

s-and-witch commented 1 year ago

Can you also make a test case?

Done