auto install things for "go generate" and then clean up afterwards

This commit is contained in:
David Sharnoff 2023-03-01 12:43:09 -08:00 committed by Tim Möhlmann
parent 2d4ce6fde3
commit 1eb4ee1c8e
3 changed files with 2 additions and 14 deletions

View file

@ -1,5 +1,6 @@
package mock
//go:generate go install github.com/golang/mock/mockgen@v1.6.0
//go:generate mockgen -package mock -destination ./storage.mock.go github.com/zitadel/oidc/v2/pkg/op Storage
//go:generate mockgen -package mock -destination ./authorizer.mock.go github.com/zitadel/oidc/v2/pkg/op Authorizer
//go:generate mockgen -package mock -destination ./client.mock.go github.com/zitadel/oidc/v2/pkg/op Client