expo-monorepo-example icon indicating copy to clipboard operation
expo-monorepo-example copied to clipboard

Unable to save turbo cache path in expo eas build

Open andrewdavidcostello opened this issue 8 months ago • 1 comments

Description of the bug

How would you shortly summarise the issue?

When running an expo build there is a Save cache step due to the cache key in eas.json.

However it results in the below error.

Saving to cache:
- /Users/expo/workingdir/node_modules/.cache/turbo
ENOENT: no such file or directory, lstat '/Users/expo/workingdir/node_modules/.cache/turbo'

To Reproduce

What steps did you perform which led to this issue?

  1. Cloned down the repo
  2. Placed our native app in apps/native
  3. Triggered an expo build (this was iOS specific but imagine it applies to both)

Expected behavior

What did you expect to have happened?

The cache is saved as intended b y the defined path

Actual behavior

What did it actually result in?

Saving to cache:
- /Users/expo/workingdir/node_modules/.cache/turbo
ENOENT: no such file or directory, lstat '/Users/expo/workingdir/node_modules/.cache/turbo'

Additional context

Can you further explain the issue? E.g., information about version/environment or screenshots.

No other context unfortunately only that removing

"cache": {
        "key": "turbo",
        "paths": [
          "../../node_modules/.cache/turbo"
        ]
      },

resolved the issue. Did attempt to alter the paths to a few different levels but each time resulted in a failure.

andrewdavidcostello avatar Jun 19 '24 08:06 andrewdavidcostello