Disable cache copy or use cache as is without creation new #22997
coolassassin
started this conversation in
Feature Requests
Replies: 1 comment
-
@coolassassin It sounds like you're using a shared drive, which is not recommended due to potential security risks. However, if you do need to use shared drives, then I would recommend adding environment or runtime inputs to your build tasks. For example, in your
In the above example, the |
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
-
Hello!
We are using NX in our team for a long time and few months ago we have migrated to new version, with new cache flow.
After setup we have found that running task in CI we have an error:
The local cache artefact in "/<redacted>/node_modules/.cache/nx/<redacted>" was not been generated on this machine.
Then we find out that we can fix it easily by adding
NX_REJECT_UNKNOWN_LOCAL_CACHE=0
to environment and it fixed the issue.But, now we have another one.
When we make build first we have no cache, but after build we save it for future builds.
Next build will take the cache and by
NX_REJECT_UNKNOWN_LOCAL_CACHE
will ignore that this cache from another machine and will use it.But, after build we will have new cache. The copy of first and new one.
As result we have infinitely growing cache artefact, because we have a lot of agents(machines) in our CI infrastructure.
I didn't try, but i can imagine some workarounds:
source
file with wrong machine-id and erase them.Theoretically both ways has to fix my issue, but it seems weird to write custom scripts based on internal implementation of NX, which can change in next releases
Could you help me to find a right way to solve this issue
Beta Was this translation helpful? Give feedback.
All reactions