Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nar: fix ordering of case-hacked paths on macOS #286

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

sandydoo
Copy link
Contributor

@sandydoo sandydoo commented Oct 4, 2024

When undo-ing the case hack on macOS, we need to restore the original order of paths when traversing directories. This entails undo-ing the case hack for the entire listed directory and then sorting.

Comment on lines +103 to +105
case Map.insertLookupWithKey (\_ n _ -> n) name f acc of
(Nothing, newMap) -> newMap
(Just conflict, _) -> error $ "File name collision between " ++ (path </> name) ++ " and " ++ (path </> conflict)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nix throws an error if there are duplicate paths in the NAR.

@domenkozar domenkozar merged commit 9944d96 into haskell-nix:master Oct 9, 2024
4 checks passed
@domenkozar
Copy link
Contributor

@sorki can you make a release 🙏

@sorki
Copy link
Member

sorki commented Oct 9, 2024

Yep, released as hnix-store-nar-0.1.1.0 via #287

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants