Closed Mic92 closed 6 months ago
@mergify queue
queue
@Mic92 is it possible something's wrong with this new implementation? I'm getting cacheStatus: "local"
for every package (example CI run) and I'm pretty sure those packages are not cached at all.
Can you reproduce this behavior locally? It works for my uses of nix-eval-jobs i.e. in buildbot-nix and this is more or less just what nix-build --dry-build
returns. Something that I used also in other tools like: https://github.com/Mic92/nix-build-uncached
will try soon -- I tried on aarch64-darwin and got bit by https://github.com/nix-community/nix-eval-jobs/issues/301
Yeah, hopefully I can fix this soon. I got a macbook for testing now and one person that fixed this in Lix was offering me help.
Maybe you can help me out, this is the line that seems to cause it:
If I use system nix
, I get isCached: false
. if I use this $PATH
prefix, I get isCached: true
for things that are definitely not cached.
I reproduced it that project's shell by adding/removing this:
shellHook = ''
export PATH=${path}:$PATH
'';
Odd that nix-eval-jobs links against nix libraries directly and doesn't use any nix from it's PATH.
I just realized that, too. I'm not sure why I added that $PATH
to postInstall
since it's assumed nix
will be in the system. I'll try removing it.
I guess this is where I got it from: https://github.com/Mic92/nix-fast-build/blob/cfff239d93716e92f6467f8953d8f8c12da1892a/default.nix#L3
but that doesn't seem to be available anymore
honestly this is reproducible for me with:
$ nix run -L github:nix-community/nix-eval-jobs#nix-eval-jobs -- \
--gc-roots-dir /tmp/tmppixgt7wv --force-recurse --workers 2 \
--flake /path/to/my#derivation --check-cache-status
if I use the rev before this PR, no longer reproducible:
$ nix run -L github:nix-community/nix-eval-jobs?rev=63154bdfb22091041b307d17863bdc0e01a32a00#nix-eval-jobs -- \
--gc-roots-dir /tmp/tmppixgt7wv --force-recurse --workers 2 \
--flake /path/to/my#derivation --check-cache-status
We deprecate isCached in favor of cacheStatus.