Sharing Nx Cache among multiple git worktrees #8896
jonhamm
started this conversation in
Feature Requests
Replies: 1 comment
-
I created a feature request with this proposal |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using NX_CACHE_DIRECTORY environment variable to share Nx cache directory among multiple git work-trees an error occurs when different work-trees are on different versions of the
nxdeps.json
file format - e.g.This will effectively make it impossible to have one common Nx Cache for all you work
NxCloud is not a solution as we do not want developers write access to the NxCloud
I believe it is wrong that
nxdeps.json
is stored in the cache directory - it should allways be stored in the workspace e.g.~/node_modules/nxdeps/
?I also wondered if the current setup will work with NX_DAEMON as I see that
and again this should be workspace local
So could we not have NX_CACHE_DIRECTORY only hold cache artefacts and
~/node_modules/.cache/nxdeps/
(or NX_DEPS_DIRECTORY) holdnxdeps.json
and then we could use the same directory asDAEMON_DIR_FOR_CURRENT_WORKSPACE
?Beta Was this translation helpful? Give feedback.
All reactions