diff --git a/Makefile b/Makefile index 553f6d5e7..038300a2a 100644 --- a/Makefile +++ b/Makefile @@ -8,8 +8,7 @@ VERSION ?= $(GIT_REF) SHELL := /bin/bash .PHONY: bootstrap -bootstrap: - go get github.com/golang/mock/mockgen@v1.4.1 +bootstrap: ; define REDIS_STUNNEL cert = private.pem diff --git a/test/mocks/mocks.go b/test/mocks/mocks.go index efe80f841..e0ce8288a 100644 --- a/test/mocks/mocks.go +++ b/test/mocks/mocks.go @@ -1,6 +1,6 @@ package mocks -//go:generate mockgen -destination ./runtime/snapshot/snapshot.go github.com/lyft/goruntime/snapshot IFace -//go:generate mockgen -destination ./runtime/loader/loader.go github.com/lyft/goruntime/loader IFace -//go:generate mockgen -destination ./config/config.go github.com/envoyproxy/ratelimit/src/config RateLimitConfig,RateLimitConfigLoader -//go:generate mockgen -destination ./redis/redis.go github.com/envoyproxy/ratelimit/src/redis RateLimitCache,Pool,Connection,Response,TimeSource,JitterRandSource +//go:generate go run github.com/golang/mock/mockgen -destination ./runtime/snapshot/snapshot.go github.com/lyft/goruntime/snapshot IFace +//go:generate go run github.com/golang/mock/mockgen -destination ./runtime/loader/loader.go github.com/lyft/goruntime/loader IFace +//go:generate go run github.com/golang/mock/mockgen -destination ./config/config.go github.com/envoyproxy/ratelimit/src/config RateLimitConfig,RateLimitConfigLoader +//go:generate go run github.com/golang/mock/mockgen -destination ./redis/redis.go github.com/envoyproxy/ratelimit/src/redis RateLimitCache,Pool,Connection,Response,TimeSource,JitterRandSource