takes extremely long to cache on windows
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.6k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
It takes extremely long time to run this job (around 18 minutes?!)
example run: https://github.com/AllenDang/giu/actions/runs/11592336860/job/32273983921?pr=898
this is a matrix os and it works normally on mac and ubuntu.
- name: Cache Go modules
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the linked Windows matrix job, comparing the “Cache Go modules” step with its macOS and Ubuntu runs. Inspect the actions/cache behavior for the ~/go/pkg/mod path and the provided key; done means Windows caching no longer takes around 18 minutes while the other matrix jobs continue to work normally.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, go
- Domain
- ci-cd
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100