mirror of
https://code.forgejo.org/actions/setup-go.git
synced 2024-11-26 21:11:07 -05:00
Merge pull request #417 from artemgavrilov/main
Improve documentation regarding dependencies caching
This commit is contained in:
commit
883490dfd0
1 changed files with 6 additions and 2 deletions
|
@ -159,7 +159,7 @@ The `cache` input is optional, and caching is turned on by default.
|
||||||
|
|
||||||
The action defaults to search for the dependency file - go.sum in the repository root, and uses its hash as a part of
|
The action defaults to search for the dependency file - go.sum in the repository root, and uses its hash as a part of
|
||||||
the cache key. Use `cache-dependency-path` input for cases when multiple dependency files are used, or they are located
|
the cache key. Use `cache-dependency-path` input for cases when multiple dependency files are used, or they are located
|
||||||
in different subdirectories.
|
in different subdirectories. The input supports glob patterns.
|
||||||
|
|
||||||
If some problem that prevents success caching happens then the action issues the warning in the log and continues the execution of the pipeline.
|
If some problem that prevents success caching happens then the action issues the warning in the log and continues the execution of the pipeline.
|
||||||
|
|
||||||
|
@ -172,7 +172,11 @@ steps:
|
||||||
with:
|
with:
|
||||||
go-version: '1.17'
|
go-version: '1.17'
|
||||||
check-latest: true
|
check-latest: true
|
||||||
cache-dependency-path: subdir/go.sum
|
cache-dependency-path: |
|
||||||
|
subdir/go.sum
|
||||||
|
tools/go.sum
|
||||||
|
# cache-dependency-path: "**/*.sum"
|
||||||
|
|
||||||
- run: go run hello.go
|
- run: go run hello.go
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue