4
0
Fork 0
mirror of https://github.com/actions/setup-go.git synced 2025-11-07 04:26:55 +00:00

Compare commits

...

2 commits

Author SHA1 Message Date
Paweł Bęza
8c1447e3cc
Merge d4abd817f3 into c0137caad7 2025-09-17 07:04:10 +07:00
Paweł Bęza
d4abd817f3 Update caching doc 2025-04-02 15:27:05 +02:00

View file

@ -17,8 +17,8 @@ We don't pursue the goal to provide wide customization of caching in scope of `a
# Decision
- Add `cache` input parameter to `actions/setup-go`. For now, input will accept the following values:
- `true` - enable caching for go dependencies
- `false`- disable caching for go dependencies. This value will be set as default value
- `true` - enable caching for go dependencies. This is the default value.
- `false`- disable caching for go dependencies.
- Cache feature will be disabled by default to make sure that we don't break existing customers. We will consider enabling cache by default in next major releases
- Action will try to search a go.sum files in the repository and throw error in the scenario that it was not found
- The hash of found file will be used as cache key (the same approach like [actions/cache](https://github.com/actions/cache/blob/main/examples.md#go---modules) recommends)