You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The hash for a project includes an absolute path of the configPath when configuration is in standalone configs
This means that the cache is not shared due to the hash being different.
Expected Behavior
The hash for a project should not include the config path.
Thus the cache should be shared.
Steps to Reproduce
Clone https://github.com/nrwl/nx-examples twice and set cacheDirectory in the taskRunnerOptions in nx.json in both clones of the repo to somewhere outside of the repos (/tmp/nx-cache).
Set the 2 clones to same commit.
Run nx build cart in clone 1 (This should not be cached)
Run nx build cart in clone 2 (This is expected to be cached but currently is not.
Environment
Node : 16.5.0
OS : linux x64
yarn : 1.22.10
nx : Not Found
@nrwl/angular : Not Found
@nrwl/cli : 12.7.0
@nrwl/cypress : 12.7.0
@nrwl/devkit : 12.7.0
@nrwl/eslint-plugin-nx : 12.7.0
@nrwl/express : Not Found
@nrwl/jest : 12.7.0
@nrwl/linter : 12.7.0
@nrwl/nest : Not Found
@nrwl/next : 12.7.0
@nrwl/node : 12.7.0
@nrwl/nx-cloud : 12.3.8
@nrwl/react : 12.7.0
@nrwl/schematics : Not Found
@nrwl/tao : 12.7.0
@nrwl/web : 12.7.0
@nrwl/workspace : 12.7.0
@nrwl/storybook : 12.7.0
@nrwl/gatsby : Not Found
typescript : 4.3.5
Related
This PR tried to fix the issue but @AgentEnder will take a look at the underlying issue.
Current Behavior
The hash for a project includes an absolute path of the configPath when configuration is in standalone configs
This means that the cache is not shared due to the hash being different.
Expected Behavior
The hash for a project should not include the config path.
Thus the cache should be shared.
Steps to Reproduce
Clone https://github.com/nrwl/nx-examples twice and set
cacheDirectory
in thetaskRunnerOptions
innx.json
in both clones of the repo to somewhere outside of the repos (/tmp/nx-cache
).Set the 2 clones to same commit.
Run
nx build cart
in clone 1 (This should not be cached)Run
nx build cart
in clone 2 (This is expected to be cached but currently is not.Environment
Related
This PR tried to fix the issue but @AgentEnder will take a look at the underlying issue.
#6872
The text was updated successfully, but these errors were encountered: