ci: fix setup-go build cache warnings. #1376
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Since v4 of the
actions/setup-go
action, caching is enabled by default, When ago.sum
can't be found in the root of the project, a warning is logged of the form:Since we don't have a
go.sum
in the project root, this warning was being issued by both tasks that used thesetup-go
action:For the first of these, this commit disables caching for the
setup-go
action to avoid the warning. I tried settingcache-dependency-path
tobogo/bogo/go.sum
orbogo/go.sum
but in each case the action reported not being able to find the file (probably because of the way we clone the upstream repo on-demand). It might be possible to get this working with more effort, but in the meantime disabling caching leaves us no worse off and squelches a warning.For the second of these, it's not clear why we were installing the Go toolchain. The BoGo test suite is not being run by this task and so Go is not required. Removing
setup-go
from this task fixes the warning.