cross-rs/cross

Error when building in parallel: `sh: 1: cargo: not found`

probablykasper opened this issue · 5 comments

When running cross in multiple instances at once, the following error shows up:

sh: 1: cargo: not found

If this is too difficult to fix, there could be an improved error, or a warning.

I'm getting this error on GitHub action, I didn't run it in parallel

I'm getting this error just with a plain cross build as well. Running NixOS. Seemingly can't use cross because of this error.

It looks like this might be related to (or the same as) #260

If you're running NixOS, then yes it should be a duplicate of #260, but I don't believe the original error is. I'll see if I can replicate this in parallel.

I can't replicate this anymore, and cross doesn't use global state and only calls cargo and docker which have good consistency mechanisms.