expo-monorepo-example
expo-monorepo-example copied to clipboard
Unable to save turbo cache path in expo eas build
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?
- Cloned down the repo
- Placed our native app in apps/native
- 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.