Skip to content

nix hash convert support JSON#14740

Closed
Ericson2314 wants to merge 2 commits intomasterfrom
hash-conv-json
Closed

nix hash convert support JSON#14740
Ericson2314 wants to merge 2 commits intomasterfrom
hash-conv-json

Conversation

@Ericson2314
Copy link
Member

Motivation

Now that nix path-info --json --json-format 2 and nix derivation show use the new structural JSON format for hashes, it is good for nix hash convert to also support this format.

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

It should not effect move / copy / etc. constructors.
@Ericson2314 Ericson2314 requested a review from edolstra as a code owner December 8, 2025 19:34
@github-actions github-actions bot added documentation new-cli Relating to the "nix" command with-tests Issues related to testing. PRs with tests have some priority labels Dec 8, 2025
Now that `nix path-info --json --json-format 2` and `nix derivation
show` use the new structural JSON format for hashes, it is good for `nix
hash convert` to also support this format.

Dogfood this in a NixOS test that needs that.
Copy link
Member

@Mic92 Mic92 left a comment

Choose a reason for hiding this comment

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

Code seems fine, don't have a strong opinion on the feature itself.

@Ericson2314
Copy link
Member Author

Closing in favor of this #14743 . If we don't have this structural JSON format and just use SRI, we don't need to extend nix hash conv.

@Ericson2314 Ericson2314 closed this Dec 8, 2025
@Ericson2314 Ericson2314 deleted the hash-conv-json branch December 8, 2025 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation new-cli Relating to the "nix" command with-tests Issues related to testing. PRs with tests have some priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants