From 4e26ee1f84c54199b93e1292ecc3539da8cf18bf Mon Sep 17 00:00:00 2001 From: Derek Nola Date: Mon, 15 Apr 2024 09:52:24 -0700 Subject: [PATCH] Match setup-go caching key in GitHub Actions (#9890) Signed-off-by: Derek Nola --- .github/actions/setup-go/action.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-go/action.yaml b/.github/actions/setup-go/action.yaml index 227b7fd248..8bc4b84eb7 100644 --- a/.github/actions/setup-go/action.yaml +++ b/.github/actions/setup-go/action.yaml @@ -23,6 +23,7 @@ runs: path: | ${{ env.GO_MODCACHE }} ${{ env.GO_CACHE }} - key: setup-go-${{ runner.os }}-go-${{ env.GO_VERSION }}-${{ hashFiles('go.sum') }} + # Match the cache key to the setup-go action https://github.com/actions/setup-go/blob/main/src/cache-restore.ts#L34 + key: setup-go-${{ runner.os }}-${{ env.ImageOS }}-go-${{ env.GO_VERSION }}-${{ hashFiles('go.sum') }} restore-keys: | setup-go-${{ runner.os }}- \ No newline at end of file