Closed dkirrane closed 5 months ago
I was expecting dependencies to cache
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 Post Go Test
section):
Cache saved with the key: setup-go-Linux-ubuntu22-....
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
to confirm re-runs always download dependencies again
:+1: 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 https://github.com/actions/toolkit/issues/1035 I'll try the workaround suggested
Hello @dkirrane 👋, I've attempted to reproduce the issue on my end, but was unable to do so. In my test environment, caching and reuse of dependencies worked as expected. It appears that the issue might be confined to your specific setup or workflow configuration. Could you please provide a link to a minimal reproduction of the issue? It would be very helpful in addressing your issue. Thank you!
Hello @dkirrane, Just a gentle reminder about the issue. If you could provide a minimal reproduction of the problem, it would help us in investigating this further. Thank you in advance!
Hello @dkirrane👋 , A gentle reminder regarding the problem. A minimal reproduction of the problem from your end would be a great help. We look forward to your response. Thank you!
Hello @dkirrane👋, Due to inactivity, I'm going to close this issue for now. Please feel free to reopen the issue if necessary, or create a new one. Thank you :)
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