-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace cache version with branch in yarn_install command #88
Replace cache version with branch in yarn_install command #88
Conversation
hello and thank you for the PR!
but we were already using the Also, I believe |
This was tested on my own repository after trying to get this orb to work -- unfortunately, it's private. Please let me know of a good way for me to test it and have it reflect here. |
Thanks for the PR @gretzky, however, I don't quite understand how this will fix the issue. You've mentioned before that to workaround the issue, you are changing the value of This PR removes that part of the cache key, and replaces it with the branch name. What I don't understand is how this will workaround the issue? Assuming that the cache stops working after every use of the cache key (I don't think it's quite that bad, but let's assume that for now). On the first successful run the cache key will now be something like If the workaround is to change the cache key to essentially clear the cache, then I don't see how this PR helps with that. If anything, it makes the workaround of changing Can you explain a bit more about how this change either works around, or fixes, the issue at #66? |
Hi people! |
Upfront, it should be noted that what is being cached is the Yarn cache. It is not caching the Sharing the yarn cache between branches is not an issue. Your development machine does this all the time unless you're manually clearing the cache before each As you said, CircleCI recommends having a "static value" that is in the cache key to allow you to manually force an invalidation. This is exactly what the Overall, I don't believe that this PR actually fixes the issue from #66. @vonovak suggested that #59 might be the root cause of the issue, so maybe someone could look into if that is actually the cause and if so submit a PR that fixes it. Closing this for now as the fix does not seem correct, but please do let us know if there's a compelling reason to move forward with this. |
Fixes #66 by replacing
.Environment.CACHE_VERSION
with.Branch
. Reference.The
CACHE_VERSION
was failing in theios_build
job, and seemingly it needed to have the cache version updated manually in environment secrets on each run.