yarn and 'Extracting tar content of undefined failed, the file appears to be corrupt'
Here’s a funny one.
One day, at $WORK, CI started to fail when running yarn install
:
|
|
After some digging we found that’s due to a race condition that made yarn pull the same dependency in parallel.
The workaround? yarn --network-concurrency=1
And that was fine for a while.
Although it was slow. So I decided to investigate it a bit further.
Luckily (or by design), there was only a repo dependency, that we control.
Removing the prepare
upstream solved the issue.