You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Realizing the same closureinfo derivation twice leads to two different outputs.
That in and of itself is not that weird, because it can happen easily as long as the close includes any path that is not reproducible, what is weird however is it happening on the same host.
The reason I care about this is because it leads to NixOS tests failing on my hydra, because of hash mismatches in nixos-install (because the nix.db in the test is generated with nix-store --load-db from that registration file). In this case:
Here, sha256:0r9q39m85l1lfbbsp1jr8l2dr9szf5jxp75hp6aip3b0ihqa03rl is the hash that this path has on cache.nixos.org and sha256:1hj3gfhkpdjs9ia62x8byfgcln61xd0hpyiy0599gqlhw566dc2p is what is in the nix store on that machine.
Steps To Reproduce
I'm not quire sure, to be honest. I guess…
Have a store path in your local store and also be available on cache.nixos.org, while both have different contents
Run closureInfo (or exportReferencesGraph, same thing) on it
Observe that it sometimes returns the one and sometimes the other
Expected behavior
I expect exportReferencesGraph to return the same thing twice when run on the same host twice. Especially if it's about the narhash of a path that's locally available.
Describe the bug
Realizing the same closureinfo derivation twice leads to two different outputs.
That in and of itself is not that weird, because it can happen easily as long as the close includes any path that is not reproducible, what is weird however is it happening on the same host.
The reason I care about this is because it leads to NixOS tests failing on my hydra, because of hash mismatches in
nixos-install
(because the nix.db in the test is generated withnix-store --load-db
from thatregistration
file). In this case:Here,
sha256:0r9q39m85l1lfbbsp1jr8l2dr9szf5jxp75hp6aip3b0ihqa03rl
is the hash that this path has oncache.nixos.org
andsha256:1hj3gfhkpdjs9ia62x8byfgcln61xd0hpyiy0599gqlhw566dc2p
is what is in the nix store on that machine.Steps To Reproduce
I'm not quire sure, to be honest. I guess…
cache.nixos.org
, while both have different contentsclosureInfo
(orexportReferencesGraph
, same thing) on itExpected behavior
I expect
exportReferencesGraph
to return the same thing twice when run on the same host twice. Especially if it's about the narhash of a path that's locally available.nix-env --version
outputnix-env (Nix) 2.4pre20210503_6d2553a
The text was updated successfully, but these errors were encountered: