Yarn Plug'n'Play causes issues for on Mac
When you checkout this repo and then on a Mac do yarn install, you get .yarn/cache/@unrs-resolver-binding-linux-x64-gnu-npm-1.11.1-93a00570de-10c0.zip deleted and .yarn/cache/@unrs-resolver-binding-darwin-arm64-npm-1.11.1-c78d4bd2cb-10c0.zip added. This is indicating an uncommitted change. However, if you commit this, the Linux users and the CI system are in the same situtation but the other way around.
See git status:
On branch main
Your branch is up to date with 'origin/main'.
You are currently bisecting, started from branch 'main'.
(use "git bisect reset" to get back to the original branch)
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
deleted: .yarn/cache/@unrs-resolver-binding-linux-x64-gnu-npm-1.11.1-93a00570de-10c0.zip
Untracked files:
(use "git add <file>..." to include in what will be committed)
.yarn/cache/@unrs-resolver-binding-darwin-arm64-npm-1.11.1-c78d4bd2cb-10c0.zip
no changes added to commit (use "git add" and/or "git commit -a")
I work around this issue for months by not committing the change. But especially when there are other dependency changes this is hard to deal with. For external contributors this is even harder to unserstand and treat correctly.
The source is unrs-resolver with the system dependent optional dependencies in combination with Yarn Plug'n'Play.
If anyone has suggestions how to better handle this case, happy to hear.