Conversation
There was a problem hiding this comment.
Cool, thanks a lot for helping out! Would be great if you could add a release note. And ideally a deprecation warning on the existing command, but this can be done in a follow-up not to stall progress here if you're short on time.
How exactly does this deviate from the proposal though?
|
@kolloch , for your questions and from Nix team
|
da8928a to
1616f0e
Compare
fc7c6c0 to
e009c33
Compare
|
I think I addressed all the comments. In addition, I did rename I did NOT yet remove the need to specify the It would be nice to get this merged in the current form plus eventually needed bug fixes, of course. Meaning: it might still be worth it to add some more docs somewhere but I'd like to do future works in separate merge requests so this doesn't grow unboundedly. Thank you! |
b13d967 to
8935e7a
Compare
The |
|
Ah, I noticed that my IDE reindented some lines close to some renames. I hope that's fine. It would be quite some pain to undo. |
068f565 to
754f20f
Compare
|
I rebase my changes on the latest master :) |
|
And some further fixes in code that wasn’t executed in |
|
@tomberek anything else? |
tomberek
left a comment
There was a problem hiding this comment.
A few binaries or unintended things snuck in. The vast majority is changes I presume the compiler is better at checking than I. Otherwise we're looking good.
f343d26 to
bde30ed
Compare
|
Thank you for checking and finding the added files, @tomberek! I interactively rebased to make sure that the binary doesn't pollute the history. Not sure what this is about and if I can do something about it: https://github.com/NixOS/nix/actions/runs/7112656418/job/19363023090?pr=9452 |
bde30ed to
9c6c4ca
Compare
This deviated from the proposal! See comments on the issue. NixOS#8876
To be consistent with CLI, nix API and many other references. As part of this, we also converted it to a scoped enum. NixOS#8876
...and also adjusted parsing accordingly. Also added CLI completion for HashFormats. NixOS#8876
(But not yet nix-hash since `nix hash` is still hidden behind a feature flag.) NixOS#8876
Co-authored-by: Théophane Hufschmitt <[email protected]>
"warning: you don'\''t have Internet access; disabling some network-dependent features" ... NixOS#8876
9c6c4ca to
9a1a3c4
Compare
|
rebased on latest master |
|
Somehow it still shows I need to address some review comments but I don't see which... |
|
Sorry I dropped the ball on this. @tomberek thank you for picking up after me. |
|
Hurray! Thanks @tomberek |

Motivation
This adds the
nix hash convertcommand as described in #8876.This does slightly deviate from the proposal:
--todefaults tosri.Context
Open:
Priorities
Add 👍 to pull requests you find important.