Commit b86edba
committed
ci: add path to go.sum to actions/setup-go
I just noticed that actions/setup-go complains about the missing
go.sum file:
> Restore cache failed: Dependencies file is not found in /home/runner/work/sys/sys. Supported file pattern: go.sum
Apparently this happens because there's no top-level go.sum file.
Documentation[1] suggests using a wild card in such cases, but
using neither "*/go.sum" nor "**/go.sum" works, as not all modules have
go.sum, and so it fails with the following error:
> Restore cache failed: Some specified paths were not resolved, unable to cache dependencies.
Alas, we have to add an extra step to list the available go.sum files.
The alternative would be listing them all, which is maintainers' nightmare.
(The contents of these files are used as an input when calculating the
cache checksum, essentially meaning if any of these files are changed,
the cache will be invalidated.)
[1]: https://github.com/actions/setup-go/blob/main/README.md#caching-dependency-files-and-build-outputs
Signed-off-by: Kir Kolyshkin <[email protected]>1 parent bcbc034 commit b86edba
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
11 | 20 | | |
12 | 21 | | |
13 | 22 | | |
14 | 23 | | |
15 | | - | |
16 | | - | |
| 24 | + | |
17 | 25 | | |
18 | 26 | | |
19 | 27 | | |
| |||
0 commit comments