-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Not working tool-cache #58
Comments
Could you share your workflow? To be clear, was it not cached for a later step or for a different job. We don't cache tools between jobs because jobs are run in clean environments (and possibly different machines). |
I have a dedicated repository. The first time I forgot to enable debug logging. This is the second run. This is the third run. |
Ok, so I think this is working as expected. The tool cache isn't preserved between runs for the same reasons mentioned above - since we're just grabbing a machine from a hosted cloud pool and returning it when we're done there's not a way to persist state between runs. If you tried something like:
you should see that it is cached for the second run. |
I see. I look forward to the cache function, thank you for the wonderful product. |
Is it common to have the same action several times as different steps in the same job ? I have never seen it before, and I found it quite surprising that the cache is not repopulated when a job is created. Is support for caching between jobs planned ? It could really help speed up builds. |
I used tookit-cache and realized that it was not cached.
Since it is still beta, I would like to know if it will be added in the future or if it is an unknown bug.
I confirmed the same phenomenon in the actions I created, but also in setup-go / setup-node.
The confirmation method is debug log output.
I noticed that the following log was output.
I tried to execute either of them several times, but it was judged
not found
in thetc.find
(https://github.com/actions/toolkit/blob/master/packages/tool-cache/src/tool-cache.ts#L391) part and the download started.The text was updated successfully, but these errors were encountered: