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:
Steven Masley
2026-05-19 14:53:13 +00:00
committed by GitHub
parent 1afc6d4fd0
commit 51b531f5b3
9 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
// package dbmock contains a mocked implementation of the database.Store interface for use in tests
package dbmock
//go:generate mockgen -destination ./dbmock.go -package dbmock github.com/coder/coder/v2/coderd/database Store
//go:generate go tool mockgen -destination ./dbmock.go -package dbmock github.com/coder/coder/v2/coderd/database Store
+1 -1
View File
@@ -1,4 +1,4 @@
// package psmock contains a mocked implementation of the pubsub.Pubsub interface for use in tests
package psmock
//go:generate mockgen -destination ./psmock.go -package psmock github.com/coder/coder/v2/coderd/database/pubsub Pubsub
//go:generate go tool mockgen -destination ./psmock.go -package psmock github.com/coder/coder/v2/coderd/database/pubsub Pubsub
+1 -1
View File
@@ -1,2 +1,2 @@
//go:generate mockgen -destination ./rendermock.go -package rendermock github.com/coder/coder/v2/coderd/dynamicparameters Renderer
//go:generate go tool mockgen -destination ./rendermock.go -package rendermock github.com/coder/coder/v2/coderd/dynamicparameters Renderer
package rendermock
@@ -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