chore: upgrade go-mockgen for 1.22 (#7683)

pull/7685/head
Joe Chen 2024-03-12 19:25:30 -04:00 committed by GitHub
parent 6c63a88ef0
commit fa84482d98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -34,8 +34,7 @@ jobs:
- name: Install Go - name: Install Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
# go-mockgen panics on Go 1.22.x, see https://github.com/derision-test/go-mockgen/issues/51 go-version: 1.22.x
go-version: 1.21.x
- name: Install Task - name: Install Task
uses: arduino/setup-task@v2 uses: arduino/setup-task@v2
with: with:

2
gen.go
View File

@ -5,4 +5,4 @@
package main package main
//go:generate go install golang.org/x/tools/cmd/goimports@v0.17.0 //go:generate go install golang.org/x/tools/cmd/goimports@v0.17.0
//go:generate go run github.com/derision-test/go-mockgen/cmd/go-mockgen@v1.3.7 //go:generate go run github.com/derision-test/go-mockgen/v2/cmd/go-mockgen@v2.0.1