Skip to content

Commit

Permalink
fix(moq): remove previous moqs before generation
Browse files Browse the repository at this point in the history
The previous moq seems to get in the way of generating new ones, this
removes the previous moq before it attempts to create a new one.
  • Loading branch information
aauren committed Sep 10, 2023
1 parent 4556aa3 commit ee85441
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ gomoqs: ./pkg/controllers/proxy/network_services_controller_moq.go
# file_moq.go file is generated from file.go "//go:generate moq ..." in-file
# annotation, as it needs to know which interfaces to create mock stubs for
%_moq.go: %.go
rm -f $(*)_moq.go
ifeq "$(BUILD_IN_DOCKER)" "true"
$(DOCKER) run -v $(PWD):/go/src/github.com/cloudnativelabs/kube-router \
-v $(GO_CACHE):/root/.cache/go-build \
Expand Down

0 comments on commit ee85441

Please sign in to comment.