From 5606d2856db34bd9826008ca4937ed0b4e382b58 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Tue, 2 Apr 2024 16:23:36 -0300 Subject: [PATCH] build: fix cache-dependency-path (#61) * build: fix cache-dependency-path Signed-off-by: Carlos Alexandro Becker * build: fix cache-dependency-path Signed-off-by: Carlos Alexandro Becker --------- Signed-off-by: Carlos Alexandro Becker --- .github/workflows/editor.yml | 2 +- .github/workflows/errors.yml | 2 +- .github/workflows/golden.yml | 2 +- .github/workflows/higherorder.yml | 2 +- .github/workflows/open.yml | 2 +- .github/workflows/ordered.yml | 2 +- .github/workflows/slice.yml | 2 +- .github/workflows/strings.yml | 2 +- .github/workflows/teatest.yml | 2 +- .github/workflows/term.yml | 2 +- .github/workflows/termios.yml | 2 +- scripts/builds | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/editor.yml b/.github/workflows/editor.yml index fc365418..9a4e25a1 100644 --- a/.github/workflows/editor.yml +++ b/.github/workflows/editor.yml @@ -25,6 +25,6 @@ jobs: with: go-version-file: ./editor/go.mod cache: true - cache-dependency-path: ./editor.sum + cache-dependency-path: ./editor/go.sum - run: go build -v ./... - run: go test -race -v ./... diff --git a/.github/workflows/errors.yml b/.github/workflows/errors.yml index 3734d3c9..82d6876b 100644 --- a/.github/workflows/errors.yml +++ b/.github/workflows/errors.yml @@ -25,6 +25,6 @@ jobs: with: go-version-file: ./errors/go.mod cache: true - cache-dependency-path: ./errors.sum + cache-dependency-path: ./errors/go.sum - run: go build -v ./... - run: go test -race -v ./... diff --git a/.github/workflows/golden.yml b/.github/workflows/golden.yml index ded04c46..b39b6afc 100644 --- a/.github/workflows/golden.yml +++ b/.github/workflows/golden.yml @@ -25,6 +25,6 @@ jobs: with: go-version-file: ./exp/golden/go.mod cache: true - cache-dependency-path: ./exp/golden.sum + cache-dependency-path: ./exp/golden/go.sum - run: go build -v ./... - run: go test -race -v ./... diff --git a/.github/workflows/higherorder.yml b/.github/workflows/higherorder.yml index cdebdbd1..02e4b737 100644 --- a/.github/workflows/higherorder.yml +++ b/.github/workflows/higherorder.yml @@ -25,6 +25,6 @@ jobs: with: go-version-file: ./exp/higherorder/go.mod cache: true - cache-dependency-path: ./exp/higherorder.sum + cache-dependency-path: ./exp/higherorder/go.sum - run: go build -v ./... - run: go test -race -v ./... diff --git a/.github/workflows/open.yml b/.github/workflows/open.yml index aadd4e78..20362be0 100644 --- a/.github/workflows/open.yml +++ b/.github/workflows/open.yml @@ -25,6 +25,6 @@ jobs: with: go-version-file: ./exp/open/go.mod cache: true - cache-dependency-path: ./exp/open.sum + cache-dependency-path: ./exp/open/go.sum - run: go build -v ./... - run: go test -race -v ./... diff --git a/.github/workflows/ordered.yml b/.github/workflows/ordered.yml index 8cb7de7f..1ca0ad65 100644 --- a/.github/workflows/ordered.yml +++ b/.github/workflows/ordered.yml @@ -25,6 +25,6 @@ jobs: with: go-version-file: ./exp/ordered/go.mod cache: true - cache-dependency-path: ./exp/ordered.sum + cache-dependency-path: ./exp/ordered/go.sum - run: go build -v ./... - run: go test -race -v ./... diff --git a/.github/workflows/slice.yml b/.github/workflows/slice.yml index a79b535f..e9deacac 100644 --- a/.github/workflows/slice.yml +++ b/.github/workflows/slice.yml @@ -25,6 +25,6 @@ jobs: with: go-version-file: ./exp/slice/go.mod cache: true - cache-dependency-path: ./exp/slice.sum + cache-dependency-path: ./exp/slice/go.sum - run: go build -v ./... - run: go test -race -v ./... diff --git a/.github/workflows/strings.yml b/.github/workflows/strings.yml index 389659c5..1f152580 100644 --- a/.github/workflows/strings.yml +++ b/.github/workflows/strings.yml @@ -25,6 +25,6 @@ jobs: with: go-version-file: ./exp/strings/go.mod cache: true - cache-dependency-path: ./exp/strings.sum + cache-dependency-path: ./exp/strings/go.sum - run: go build -v ./... - run: go test -race -v ./... diff --git a/.github/workflows/teatest.yml b/.github/workflows/teatest.yml index d74f0c98..f9d77675 100644 --- a/.github/workflows/teatest.yml +++ b/.github/workflows/teatest.yml @@ -25,6 +25,6 @@ jobs: with: go-version-file: ./exp/teatest/go.mod cache: true - cache-dependency-path: ./exp/teatest.sum + cache-dependency-path: ./exp/teatest/go.sum - run: go build -v ./... - run: go test -race -v ./... diff --git a/.github/workflows/term.yml b/.github/workflows/term.yml index 5998ba30..f0fdbba9 100644 --- a/.github/workflows/term.yml +++ b/.github/workflows/term.yml @@ -25,6 +25,6 @@ jobs: with: go-version-file: ./exp/term/go.mod cache: true - cache-dependency-path: ./exp/term.sum + cache-dependency-path: ./exp/term/go.sum - run: go build -v ./... - run: go test -race -v ./... diff --git a/.github/workflows/termios.yml b/.github/workflows/termios.yml index 68965c55..a703fe41 100644 --- a/.github/workflows/termios.yml +++ b/.github/workflows/termios.yml @@ -17,7 +17,7 @@ jobs: with: go-version-file: ./exp/term/go.mod cache: true - cache-dependency-path: ./exp/term.sum + cache-dependency-path: ./exp/term/go.sum # https://go.dev/doc/install/source#environment - run: GOOS=darwin GOARCH=amd64 go test -c -v ./termios/... - run: GOOS=darwin GOARCH=arm64 go test -c -v ./termios/... diff --git a/scripts/builds b/scripts/builds index 8d49f466..6aae9e81 100755 --- a/scripts/builds +++ b/scripts/builds @@ -3,7 +3,7 @@ # shellcheck disable=SC2016 find . -type f -name go.mod | sort | while read -r mod; do name="$(basename "$(dirname "$mod")")" - sum="$(dirname "$mod").sum" + sum="$(dirname "$mod")/go.sum" echo "# auto-generated by scripts/dependabot. DO NOT EDIT. name: $name