build: reproducible go generate

This commit is contained in:
talksik
2026-04-29 15:02:16 -07:00
parent 0c38866251
commit 2b37979a76
6 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ import (
stripesub "github.com/stripe/stripe-go/v85/subscription"
)
//go:generate mockgen -source ./service.go -destination ./mocks/service.go
//go:generate go tool mockgen -source ./service.go -destination ./mocks/service.go
type Service interface {
GetStatus(ctx context.Context, networkID string) (*Status, error)
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"cloud.google.com/go/firestore"
)
//go:generate mockgen -source ./membershippublisher.go -destination ./mocks/membershippublisher.go
//go:generate go tool mockgen -source ./membershippublisher.go -destination ./mocks/membershippublisher.go
// MembershipPublisher publishes network membership changes to the live store
// (Firestore) that clients subscribe to. Postgres remains the source of truth;
@@ -2,7 +2,7 @@ package particle
import "context"
//go:generate mockgen -source ./networkmembershipchecker.go -destination ./mocks/networkmembershipchecker.go
//go:generate go tool mockgen -source ./networkmembershipchecker.go -destination ./mocks/networkmembershipchecker.go
type NetworkMembershipChecker interface {
// IsMember returns true if the humanId is a member of the network.
+1 -1
View File
@@ -3,4 +3,4 @@
// directive lives here rather than next to the source.
package aero
//go:generate mockgen -destination ./mock_aero.go -package aero github.com/flowy-live/llink/genproto/aero PrimaryClient
//go:generate go tool mockgen -destination ./mock_aero.go -package aero github.com/flowy-live/llink/genproto/aero PrimaryClient