-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add missing --hash-algo
flag to nix store add
#9809
Conversation
f03b49c
to
472cbd1
Compare
Maybe --algorithm to match the adjacent word flags, plus docs on what the options are? By the way it looks like —name and —mode above are both using -n as the short flag 😬
…On Fri, Jan 19, 2024, at 1:19 AM, John Ericson wrote:
Motivation
This is a paramter to the underlying `addToStore` that we forgot to expose
Context
Was supposed to have been part of #8915 <#8915>.
Priorities and Process
Add 👍 to pull requests you find important <https://github.com/NixOS/nix/pulls?q=is%3Aopen+sort%3Areactions-%2B1-desc>.
The Nix maintainer team uses a GitHub project board <https://github.com/orgs/NixOS/projects/19> to schedule and track reviews <https://github.com/NixOS/nix/tree/master/maintainers#project-board-protocol>.
You can view, comment on, or merge this pull request online at:
#9809
Commit Summary
• f03b49c <f03b49c> Add missing `--algo` flag to `nix store add`
File Changes
(1 file <https://github.com/NixOS/nix/pull/9809/files>)
• *M* src/nix/add-to-store.cc <https://github.com/NixOS/nix/pull/9809/files#diff-345e94108682437ad97f353613e507147c1dc66b4b123067ecf405173b29c0e1> (7)
Patch Links:
• https://github.com/NixOS/nix/pull/9809.patch
• https://github.com/NixOS/nix/pull/9809.diff
—
Reply to this email directly, view it on GitHub <#9809>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAASXLHD5P6BOMAMBXI3VZDYPIGARAVCNFSM6AAAAABCBN3QKKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA4DSNRZGAZTEMQ>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
That looks like a cut&paste mistake. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks :)
EDIT: Didn't see @grahamc 's comment. --algorithm
might be better indeed. It's an advanced-enough option that we can afford to be very explicit
`-n` was an alias for `--mode`, but that seems to just be a copy-paste error as it doesn't make sense. `--mode` probably doesn't need a shorthand flag at all, so remove it. Noticed in #9809 (comment)
|
|
Discussed during the Nix maintainers meeting today:
@Ericson2314 will do the change, then it's good to go |
472cbd1
to
925bd3b
Compare
--algo
flag to nix store add
--hash-algo
for nix store add
and nix store convert
43bf9c5
to
334312b
Compare
--hash-algo
for nix store add
and nix store convert
--hash-algo
flag to nix store add
334312b
to
356352c
Compare
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/2024-01-19-nix-team-meeting-minutes-116/38837/1 |
Motivation
This is a paramter to the underlying
addToStore
that we forgot to exposeContext
Was supposed to have been part of #8915.
Priorities and Process
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.