cachix-action: `cachix: CppStdException "Exception: path '/nix/store/...' is not valid; type: nix::InvalidPath"`
I’m seeing a weird error trying to use cachix-action.
/home/runner/work/_actions/cachix/cachix-action/v10/dist/main/push-paths.sh /home/runner/.nix-profile/bin/cachix ploop
cachix: CppStdException "Exception: path '/nix/store/ab3yh7s8rms16b66jlbbzvjaif94ls93-python3.9-apache-beam-2.35.0' 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
Here’s a link to the failed run: https://github.com/samuela/nixpkgs-upkeep/runs/4976168659?check_suite_focus=true.
Am I doing something wrong?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 3
- Comments: 18 (8 by maintainers)
This is now fixed in https://github.com/cachix/cachix/pull/410
I’ll make a release and let you know once it hits the channels!
Thanks for reporting!
0.7.0 should fix this, I’ll update the official url.
great news @domenkozar, thank you 🙌
Thanks so much @domenkozar!
To reproduce:
Then in another terminal:
And finally:
Anyone know of a workaround for this issue? I’m running into it on a GitHub action that ends up building GHC. It eventually times out. Then it hits this error and so every build needs to rebuild GHC and ends up timing out and failing.
We’re seeing this, too:
EDIT: Using
cachix-action@10EDIT2: This happens only when the build itself fails (after which cachix-action runs and also fails)Tried again today with
cachix-action@10, same issue.