nix repair
does not adhere to extra-trusted-substituters
#11875
Labels
nix repair
does not adhere to extra-trusted-substituters
#11875
Describe the bug
nix repair
, and probably other commands do not respect thetrusted-substituters
setting.Instead,
?trusted=true
must be passed.This is surprising, and probably a bug.
Steps To Reproduce
There's probably an easier way to trigger this.
<path>
nix copy --to ~/recoverstore <path>
rw
and deleting it from the file system. Do not delete it from the store db; we want that entry to remain.sudo nix store repair --extra-substituters ~/recoverstore --extra-trusted-substituters ~/recoverstore <path>
(the latter option seems to have no effect; need?trusted=true
; different issue)Observe a message like
Expected behavior
No message, and the substitution succeeds because either or both:
trusted-substituters
A valid signature from the original store db is used.
Note that we're not doing a normal substitution here. We may already have a signature, so if the substituter's contents match our metadata, we have all we need, and we should be able to proceed.
nix-env --version
output2.24.10
Additional context
'local'
, wrong #11873Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: