Skip to content

Commit e098255

Browse files
mcdonnnjjmorrowomni
authored andcommitted
Disable caching for the setup-go Action
The cache key used relies on the existence of a go.sum file. Since we have no expectation for Go source code, including that file, and since we already include the Go cache in our job caching, we can safely disable caching in the Action.
1 parent 43d588f commit e098255

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
- id: setup-go
3030
uses: actions/setup-go@v4
3131
with:
32+
# There is no expectation for actual Go code so we disable caching as
33+
# it relies on the existence of a go.sum file.
34+
cache: false
3235
go-version: "1.19"
3336
- name: Lookup Go cache directory
3437
id: go-cache

0 commit comments

Comments
 (0)