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
Can't cache dependencies from a composite action #467
Comments
Just to clarify: you're seeing the cache not found on repeated runs on the same branch in the calling repo? Do you see the cache being successfully saved on a previous run with a line like (in the
|
Hello @dkirrane, Thank you for creating this issue and we will look into it :) |
@matthewhughes934 - yes to confirm re-runs always download dependencies again I can see there is 1 cache |
👍 in that case is your issue related to the first run of the action? From what I understand cache access is limited to workflows the repo they were created in (from: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#restrictions-for-accessing-a-cache) so I wouldn't expect the first run to hit any cache |
Ok, seems similar to this actions/toolkit#1035 |
Hello @dkirrane 👋, |
Hello @dkirrane, |
Description:
I have a repo with a
go.mod
andgo.sum
and I caller another repo that contains a composite action that checks out the caller repo and callsactions/setup-go@v5
Action version:
actions/setup-go@v5
Platform:
Runner type:
Tools version:
go 1.21
Repro steps:
Caller repo calling the above composite action:
Expected behavior:
I was expecting dependencies to cache
Actual behavior:
Cache is not found
The text was updated successfully, but these errors were encountered: