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

Stabilise nix store delete #8916

Open
fricklerhandwerk opened this issue Sep 4, 2023 · 0 comments
Open

Stabilise nix store delete #8916

fricklerhandwerk opened this issue Sep 4, 2023 · 0 comments
Labels
idea approved The given proposal has been discussed and approved by the Nix team. An implementation is welcome. new-cli Relating to the "nix" command RFC Related to an accepted RFC

Comments

@fricklerhandwerk
Copy link
Contributor

fricklerhandwerk commented Sep 4, 2023

This implements NixOS/rfcs#136. This issue is agreed-upon by the @nixOS/nix-team

Required changes:

  • provide better information about why something was not deleted
  • add this behavior: nix store delete ./result should delete the linked store path, the symlink, and the GC root
    • currently it can't delete the store path because it's resolved first, and recognised as linked to, leading to an inscrutable error message
  • document that resolving the argument to a store path takes precedence
    • example: if you have a flake in a store path, the argument is taken as a store path, not as a flake.
    • installable resolution is a global issue though, and we will address this in a global review pass of the CLI
@fricklerhandwerk fricklerhandwerk added new-cli Relating to the "nix" command idea approved The given proposal has been discussed and approved by the Nix team. An implementation is welcome. RFC Related to an accepted RFC labels Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea approved The given proposal has been discussed and approved by the Nix team. An implementation is welcome. new-cli Relating to the "nix" command RFC Related to an accepted RFC
Projects
None yet
Development

No branches or pull requests

1 participant