mirror of https://github.com/gogs/gogs.git
chore: upgrade go-mockgen for 1.22 (#7683)
parent
6c63a88ef0
commit
fa84482d98
|
@ -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
2
gen.go
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue