Skip to content

nix store delete nixpkgs#hello first downloads hello before deleting it #15520

@lisanna-dettwyler

Description

@lisanna-dettwyler

Describe the bug

Passing a flake attribute to nix store delete will first cause it to be downloaded before being deleted. This is a bit unintuitive.

Steps To Reproduce

✗ nix store delete nixpkgs#hello
this path will be fetched (0.05 MiB download, 0.26 MiB unpacked):
  /nix/store/aiblla3swfhcv348k8h10mnsg35wzvm6-hello-2.12.2
1 store paths deleted, 0.00 MiB freed

Expected behavior

I think it should instead error saying that it does not exist.

Metadata

nix-env (Nix) 2.31.2

Additional context

Checklist


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions