Skip to content

Commit bc682d5

Browse files
authored
chore: use Go 1.24 tool feature for Ginkgo (#1188)
1 parent 3fc2184 commit bc682d5

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.github/workflows/focused-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ jobs:
1010
with:
1111
go-version: '1.24.0'
1212
- uses: actions/checkout@v4
13-
- run: go run github.com/onsi/ginkgo/v2/ginkgo unfocus && test -z "$(git status -s)"
13+
- run: go tool ginkgo unfocus && test -z "$(git status -s)"
1414

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ test-units: ## run unit tests
4848
# Integration tests are relatively resource-hungry, so we tune down the number of processes that run in parallel
4949
.PHONY: test-integration
5050
test-integration: .pak-cache ## run integration tests
51-
PAK_BUILD_CACHE_PATH=$(PAK_CACHE) go run github.com/onsi/ginkgo/v2/ginkgo --procs 4 integrationtest/...
51+
PAK_BUILD_CACHE_PATH=$(PAK_CACHE) go tool ginkgo --procs 4 integrationtest/...
5252

5353
.pak-cache:
5454
mkdir -p $(PAK_CACHE)

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,5 @@ require (
142142
gopkg.in/ini.v1 v1.67.0 // indirect
143143
rsc.io/goversion v1.2.0 // indirect
144144
)
145+
146+
tool github.com/onsi/ginkgo/v2/ginkgo

tools/tools.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ package tools
66
import (
77
_ "github.com/google/gops"
88
_ "github.com/maxbrunsfeld/counterfeiter/v6"
9-
_ "github.com/onsi/ginkgo/v2/ginkgo"
109
_ "golang.org/x/tools/cmd/goimports"
1110
_ "honnef.co/go/tools/cmd/staticcheck"
1211
)

0 commit comments

Comments
 (0)