Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9535557

Browse files
authoredMar 7, 2025
Modify setup-go cache key to work better with merge queues (microsoft#416)
1 parent 088b19e commit 9535557

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎.github/actions/setup-go/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ runs:
2525
# There is more code downloaded and built than is covered by '**/go.sum',
2626
# so give each job its own cache to try and not end up sharing the wrong
2727
# cache between jobs.
28-
key: ts-setup-go-${{ runner.os }}-${{ steps.install-go.outputs.go-version }}-${{ github.workflow }}-${{ inputs.cache-name }}-${{ hashFiles('**/go.sum', '**/Herebyfile.mjs', '**/.custom-gcl.yml') }}
28+
key: ts-setup-go-${{ runner.os }}-${{ steps.install-go.outputs.go-version }}-${{ hashFiles('**/go.sum', '**/Herebyfile.mjs', '**/.custom-gcl.yml') }}-${{ github.workflow }}-${{ inputs.cache-name }}
29+
restore-keys: |
30+
ts-setup-go-${{ runner.os }}-${{ steps.install-go.outputs.go-version }}-${{ hashFiles('**/go.sum', '**/Herebyfile.mjs', '**/.custom-gcl.yml') }}
2931
path: |
3032
~/go/pkg/mod
3133
~/.cache/go-build

0 commit comments

Comments
 (0)
Please sign in to comment.