From e4b4f3917faa32a6888cb04cd77b8e1fb92723de Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Thu, 21 Apr 2022 12:07:37 +0200 Subject: [PATCH] add path --- docs/adrs/0000-caching-dependencies.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/adrs/0000-caching-dependencies.md b/docs/adrs/0000-caching-dependencies.md index 5a199a0..7aa5fdd 100644 --- a/docs/adrs/0000-caching-dependencies.md +++ b/docs/adrs/0000-caching-dependencies.md @@ -23,7 +23,7 @@ We don't pursue the goal to provide wide customization of caching in scope of `a - 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) - The following key cache will be used `${{ runner.os }}-go${{ go-version }}-${{ hashFiles('') }}` -- Action will cache global cache from the `go env GOCACHE` command +- Action will cache global cache from the `go env GOMODCACHE` and `go env GOCACHE` commands. - Add a `cache-dependency-path` input parameter to `actions/setup-go`. The new input will accept an array or regex of dependency files. The field will accept a path (relative to the repository root) to dependency files. If the provided path contains wildcards, the action will search all matching files and calculate a common hash like the ${{ hashFiles('**/go.sum') }} YAML construction does. # Example of real use-cases