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

Content address method cleanup #288

Merged

Conversation

Ericson2314
Copy link
Member

Doing some refactors I did in upstream Nix; each commit here links the commits there.

@Ericson2314
Copy link
Member Author

Now contains #291; very nice!

ContentAddressMethod_Text ->
case hashAlgo of
HashAlgo_SHA256 -> makeTextPath storeDir h $ references_others refs
_ -> error "unsupported" -- TODO do better; maybe we'll just remove this restriction too?
Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe should make this better :)

@@ -1,17 +1,11 @@
-- | TODO rename module
Copy link
Member

Choose a reason for hiding this comment

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

Split into RepairMode.hs and PathFilter.hs? Not sure if worth just for these two.

Copy link
Member Author

Choose a reason for hiding this comment

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

I would just revisit such things later :)

I am not even sure PathFilter needs to go in core.

@Ericson2314 Ericson2314 merged commit 7782e5b into haskell-nix:master Nov 5, 2024
4 checks passed
@Ericson2314 Ericson2314 deleted the content-address-method-cleanup branch November 5, 2024 18:31
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.

2 participants