Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

path '/nix/store/{b32}-headscale-{rev}-go-modules' is not valid; type: nix::InvalidPath

See original GitHub issue

Any ideas?

 Post job cleanup.
Cachix: push
  /home/runner/work/_actions/cachix/cachix-action/v10/dist/main/ /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/' 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?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:22 (12 by maintainers)

github_iconTop GitHub Comments

colinxscommented, May 24, 2021

Jumping in a bit late here, but I ran into the same issue while using nix-prefetch ( I think the fundamental problem here is in

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 of nix-store --dump-db. That appears to fix the issue for me.

domenkozarcommented, Dec 16, 2021

I need to fix a few more things.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Post request failing with Invalid file path error - java
This is caused by a known JDK bug, that I was able to reproduce under JDK 11.0.15 and JDK 17.0.3 in Windows. To...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found