Yarn workspace cache is no longer working

:wave: Howdy! Long story short: preview builds with yarn workspaces have started failing since ~ 2 days ago.

Here’s a demo build that is failing: Netlify App

Re-running the same build without cache makes it pass. Demo: Netlify App

The only difference between a few days ago and today is that yarn workspaces are no longer being recognized. Here’s a successful deployment a few days ago: Netlify App

So to sum it up…

Before:

7:27:31 PM: yarn workspaces detected
7:27:31 PM: Started restoring workspace packages/desktop-client node modules
7:27:31 PM: Finished restoring workspace packages/desktop-client node modules
7:27:31 PM: Started restoring workspace packages/import-ynab4 node modules
7:27:31 PM: Finished restoring workspace packages/import-ynab4 node modules
7:27:31 PM: Started restoring workspace packages/import-ynab5 node modules
7:27:31 PM: Finished restoring workspace packages/import-ynab5 node modules
7:27:31 PM: Started restoring workspace packages/loot-core node modules
7:27:31 PM: Finished restoring workspace packages/loot-core node modules
7:27:31 PM: Started restoring workspace root node modules
7:27:31 PM: Finished restoring workspace root node modules

After:

8:27:56 PM: No yarn workspaces detected
8:27:56 PM: Started restoring cached node modules
8:27:56 PM: Finished restoring cached node modules

Nothing has changed on our end that could have influenced this.

The support forums has a few examples of issues where setups were working and suddenly stopped working a few hours ago. It’s probably something on Netlify’s side. They just don’t seem very reactive :sweat_smile:, even their status page shows nothing’s supposedly wrong.

Hi @orditeck we rolled out a change that impacted our users. This has since been rolled back and should not be an issue any longer.

Hi! Fellow maintainer of the same repo here. I just pushed a new build (Netlify App) and it is still failing with the same issue.

We managed to solve the problem by upgrading yarn from 3.2.0 to 3.4.1

Glad to hear you resolved your problems. Thanks for sharing your solution.