-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Remove nix-store --dump and nix-store --restore? #3183
Comments
The NAR produced by `--export` seems to work juts as well as the NAR produced by `--dump`, except that it can *also* be safely imported into an existing nix store and update the sqlite metadata. This commit changes the manual to reference export/import by default. See NixOS#3183 for a potential followup pending discussion.
Well, the entire But it's really the |
Closing since we don't want to break compatibility. |
I couldn't unpack/extract NAR with |
Currently, nix has two pairs of commands for interacting with NAR files:
These differ in that the former can only take one path, and does not store the
requisites of a path, so it can't be imported into a nix store the way you'd
expect. It requires that all paths not already exist on the --restore end, while
the --import one can incrementally update paths and properly sync the sqlite db.
Perhaps we should delete
nix-store --dump
andnix-store --restore
entirely,since they appear to be less useful subsets of the export and import commands.
This would simplify the cmdline / API surface area for newcomers and reduce
ongoing maintenance.
Here's an example of a newcomer getting tripped up and using the "inferior"
dump/restore. I also spent a while staring at this at NixCon, and would like to
help remove it if indeed there's no legitimate use case for it.
#951 (comment)
The text was updated successfully, but these errors were encountered: