mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: 'go generate' mockgen to use go tool wrapper (#25490)
Calling `mockgen` relies on the executable in the `$PATH`. Using `go tool` uses the one defined in `go.mod`
This commit is contained in:
@@ -2,4 +2,4 @@
|
||||
// notifications.Enqueuer interface for use in tests.
|
||||
package notificationsmock
|
||||
|
||||
//go:generate mockgen -destination ./notificationsmock.go -package notificationsmock github.com/coder/coder/v2/coderd/notifications Enqueuer
|
||||
//go:generate go tool mockgen -destination ./notificationsmock.go -package notificationsmock github.com/coder/coder/v2/coderd/notifications Enqueuer
|
||||
|
||||
Reference in New Issue
Block a user