Describe the bug
nix copy does not preserve provenance information.
Steps To Reproduce
(assuming both machines have provenance feature enabled)
- On machine A,
nix build --option substitute false nixpkgs#hello
- On machine A, observe that
nix provenance show reports provenance information
- On machine B,
nix copy --from ssh-ng://machine-a /nix/store/...-hello --no-check-sigs
- On machine B, observe that
nix provenance show says "no provenance information available"
Expected behavior
nix copy preserves provenance information, and running nix provenance show on machine B should report the same provenance as on machine A, plus also the fact that it was copied from machine B.
Metadata
Nix (Determinate Nix 3.16.2) 2.33.3
Additional context
Checklist
Describe the bug
nix copydoes not preserve provenance information.Steps To Reproduce
(assuming both machines have
provenancefeature enabled)nix build --option substitute false nixpkgs#hellonix provenance showreports provenance informationnix copy --from ssh-ng://machine-a /nix/store/...-hello --no-check-sigsnix provenance showsays "no provenance information available"Expected behavior
nix copypreserves provenance information, and runningnix provenance showon machine B should report the same provenance as on machine A, plus also the fact that it was copied from machine B.Metadata
Additional context
Checklist