mirror of
https://github.com/actions/setup-go.git
synced 2025-04-24 01:50:52 +00:00
fix hashFile
This commit is contained in:
parent
d8ddd101cc
commit
b91a04b1a7
1 changed files with 4 additions and 4 deletions
|
@ -209,14 +209,14 @@ env:
|
|||
GOARCH: ...
|
||||
|
||||
steps:
|
||||
- run: echo "$GOOS $GOARCH" > /tmp/env
|
||||
- run: echo "$GOOS $GOARCH" > env.txt
|
||||
|
||||
- uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: '1.17'
|
||||
cache-dependency-path: |
|
||||
go.sum
|
||||
/tmp/env
|
||||
env.txt
|
||||
- run: go run hello.go
|
||||
```
|
||||
|
||||
|
@ -269,14 +269,14 @@ build:
|
|||
key: setup-go-deps-${{ runner.os }}-go-${{ hashFiles('go.sum go.mod') }}
|
||||
|
||||
- name:
|
||||
run: echo "$GOOS $GOARCH"> /tmp/env
|
||||
run: echo "$GOOS $GOARCH"> env.txt
|
||||
|
||||
- name: Set up intermediate built files cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
${{ env.modcache }}
|
||||
key: setup-go-build-${{ env.GOOS }}-${{ env.GOARCH }}-${{ runner.os }}-go-${{ hashFiles('**/*.go /tmp/env') }}
|
||||
key: setup-go-build-${{ env.GOOS }}-${{ env.GOARCH }}-${{ runner.os }}-go-${{ hashFiles('**/*.go', 'env.txt') }}
|
||||
restore-keys: |
|
||||
setup-go-build-${{ env.GOOS }}-${{ env.GOARCH }}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue