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
It would be nice to be able to clear the cache or bust the cache is some way. Based on actions/cache#2 the only way is to just modify the cache key (such as adding -v2- to it).
Why would this be needed? Not 100% sure, but I think my yarn cache is bad. It hits the cache and restores, but yarn still fetches the packages and takes a long time. Since the cache is not updated after a hit, I would need to force a cache miss in order to fix this.
(On second thought, another option might be to replace the cache after successful install. But that seems pointless as 99% of the time if the cache it, then the cache probably will not change. Though I think things like TravisCI or CircleCI do save every run)
The text was updated successfully, but these errors were encountered:
I ran into an issue where creating the cache returns an error because "another job may be creating this cache".
Apparently the same issue might happen with the native cache action with the cause possibly being some sort of lock due to a job being canceled while trying to create the cache.
The easiest and most reliable workaround is changing the cache key.
So for me the workaround seems to be switching to the native cache action, at least for now 🤷
It would be nice to be able to clear the cache or bust the cache is some way. Based on actions/cache#2 the only way is to just modify the cache key (such as adding
-v2-
to it).Why would this be needed? Not 100% sure, but I think my yarn cache is bad. It hits the cache and restores, but yarn still fetches the packages and takes a long time. Since the cache is not updated after a hit, I would need to force a cache miss in order to fix this.
(On second thought, another option might be to replace the cache after successful install. But that seems pointless as 99% of the time if the cache it, then the cache probably will not change. Though I think things like TravisCI or CircleCI do save every run)
The text was updated successfully, but these errors were encountered: