actions / actions/cache

takes extremely long to cache on windows

Open
#1,490 3 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.