--repair absolutely doesn't work with chroot stores #892

Open
opened 2025-06-30 00:03:37 +00:00 by raito · 0 comments
Owner

Describe the bug

--repair doesn't repair with chroot stores.

Steps To Reproduce

  1. nix-build -A something --store /tmp/a-chroot-store
  2. rm -rf /tmp/a-chroot-store/nix/store/some-dependency
  3. nix-build -A something --store /tmp/a-chroot-store --repair
  4. See failure

Expected behavior

Repair similar to when this is not a chroot store.

nix --version output

≤ 2.94.0-dev 286aa409b24e.

Additional context

This came up in the recovery attempts, reported by @delroth.

## Describe the bug `--repair` doesn't repair with chroot stores. ## Steps To Reproduce 1. `nix-build -A something --store /tmp/a-chroot-store` 2. `rm -rf /tmp/a-chroot-store/nix/store/some-dependency` 3. `nix-build -A something --store /tmp/a-chroot-store --repair` 4. See failure ## Expected behavior Repair similar to when this is not a chroot store. ## `nix --version` output ≤ 2.94.0-dev `286aa409b24e`. ## Additional context This came up in the recovery attempts, reported by @delroth.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#892
No description provided.