mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00: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:
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user