cachix-action: path '/nix/store/{b32}-headscale-{rev}-go-modules' is not valid; type: nix::InvalidPath
Any ideas?
Post job cleanup.
Cachix: push
/home/runner/work/_actions/cachix/cachix-action/v10/dist/main/push-paths.sh /home/runner/.nix-profile/bin/cachix colemickens
cachix: CppStdException "Exception: path '/nix/store/zlrdfi88khbzy5s0p22ixgib1bmlyn0k-headscale-3cf599be6493e0e3d58a3671f8f7694f4304e576-go-modules' is not valid; type: nix::InvalidPath"
Error: Action failed with error: Error: The process '/home/runner/work/_actions/cachix/cachix-action/v10/dist/main/push-paths.sh' failed with exit code 1
Seems to be repeatable, and shouldn’t have anything to do with GC occurring.
If it could be related, I might be creating invalid nix store paths when i fake sha256s and then use the error to update them?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 22 (12 by maintainers)
Jumping in a bit late here, but I ran into the same issue while using
nix-prefetch(https://github.com/msteen/nix-prefetch/issues/23). I think the fundamental problem here is in list-nix-store.sh.The paths are computed by just listing what’s under
/nix/store, which may include partial builds. I believe the correct thing to do is to instead parse the output ofnix-store --dump-db. That appears to fix the issue for me.