-
Notifications
You must be signed in to change notification settings - Fork 69
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
"npm cache hit undefined" #175
Comments
As far as I've verified, I've confirmed that the arguments I pass on save have been tampered with, so that might be the culprit. Try using |
Thanks @u0reo I have tried your solution and it is working just fine. With |
This is caused by The A workaround is always sending a copy of |
|
@OpportunityLiu, could you please provide more details on that? How should this workaround look in the code? |
Has this been solved? I believe I am getting similar issues. Interestingly, this only happened after I switched to node 16. On node 14, I have zero issues.
|
I've started to have the same issue after upgrading from node 16 to node 18. |
@OpportunityLiu I saw your suggested code change here would any of you be willing to create a PR, increasing the chance that this get fixed, without having to wait for actions/toolkit#1377 to be resolved. @bahmutov Pinging you to make you aware of this issue. |
Here is the commit that adds the workaround to source. The dist files also need to be updated in this repo. imo, best for the repo author to create. |
@bahmutov I've created a PR, containing the source change and update to the @WebeWizard As the PR is mostly based on your code, I added you as a co-author. |
- closes #175 An issue in action/toolkit modifies the inputPath values passed to cache function. These changes work around this issue. For more details see: actions/toolkit#1378 Co-authored-by: Justin Leis <justin.leis@webewizard.com>
π This issue has been resolved in version 1.8.33 π The release is available on: Your semantic-release bot π¦π |
* @see bahmutov/npm-install#175 * the issue with cache miss was resolved and workaround should not be used anymore
* @see bahmutov/npm-install#175 * the issue with cache miss was resolved and workaround should not be used anymore
* @see bahmutov/npm-install#175 * the issue with cache miss was resolved and workaround should not be used anymore
I am using npm install with two actions and they are never cached, it always says cache hit undefined or failed to save cache.
The workflow file:
And the output:
My first thought is that it is because these are running in parallel, so it's trying to save the cache twice at the same time. Is it worth prefixing each cache keys of npm install in each of these workflows?
The text was updated successfully, but these errors were encountered: