Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: --check-cache-status false positive #139

Open
nrdxp opened this issue Nov 2, 2022 · 1 comment
Open

bug: --check-cache-status false positive #139

nrdxp opened this issue Nov 2, 2022 · 1 comment

Comments

@nrdxp
Copy link

nrdxp commented Nov 2, 2022

I'm not really sure the exact semantics of the bug just yet, but when I dump a flake's nixConfig into the environment via the NIX_CONFIG variable, I get false positives when passing --check-cache-status, that is, isCached is reporting true even though the path is not cached in any of the substituters.

Not sure, but does the code consider the local /nix/store a substituter? That might be a possible explanation since the derivation in question is a NixOS config that I had to rebuild to modify my /etc/nix.conf to try and triage this issue, but it probably shouldn't since I think we want this flag to report if an artifact exists on a remote.

@nrdxp nrdxp changed the title bug: --check-cache-status false positive when NIX_CONFIG is set bug: --check-cache-status false positive Nov 2, 2022
@colemickens
Copy link
Member

from the help text:

  --check-cache-status   Check if the derivations are present locally or in any configured substituters (i.e. binary cache). The information will be exposed in the `isCached` field of the JSON output.

I've taken to just trying to push any paths that exist locally, as it means that I might've (just) built them locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants