mirror of
https://github.com/actions/setup-go.git
synced 2025-04-23 17:40:50 +00:00
add path
This commit is contained in:
parent
b87d45136e
commit
e4b4f3917f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
- 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 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('<go.sum-path>') }}`
|
- The following key cache will be used `${{ runner.os }}-go${{ go-version }}-${{ hashFiles('<go.sum-path>') }}`
|
||||||
- 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.
|
- 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
|
# Example of real use-cases
|
||||||
|
|
Loading…
Add table
Reference in a new issue