Open paulcadman opened 2 months ago
To reproduce:
git clone https://github.com/anoma/juvix-stdlib
juvix format
cd juvix-stdlib juvix format test/
The juvix-stdlib-test project is formatted
An error is produced due to two juvix processes trying to modify the same file simultaneously.
Example error:
juvix: /private/tmp/juvix-stdlib/test/.juvix-build/private/tmp/juvix-stdlib/test/.juvix-build/deps/5aaa604f79e70669ec155cd8e5f57d0fdc9532adb5a0ebaeaa0b7eec5fd77d52/Stdlib/Trait/Ord.jvo: withBinaryFile: resource busy (file is locked)
Run juvix with the number of threads set to 1:
juvix
juvix -N1 format test
Project locking is necessary if we allow concurrent access to the build directory: https://github.com/anoma/juvix/issues/2812
To reproduce:
juvix format
in the test directoryExpected
The juvix-stdlib-test project is formatted
Actual
An error is produced due to two juvix processes trying to modify the same file simultaneously.
Example error:
Workaround
Run
juvix
with the number of threads set to 1: