diff --git a/Makefile b/Makefile index d1ce6b582..4c99d4cb2 100644 --- a/Makefile +++ b/Makefile @@ -248,7 +248,8 @@ envtest: OPERATOR_SDK = $(shell pwd)/bin/operator-sdk .PHONY: operator-sdk operator-sdk: - cd ./tools && go build -o $(OPERATOR_SDK) ./vendor/$(shell grep operator-sdk tools/tools.go | sed 's/.*_ "//;s/"//') +# FIXME: Remove `go mod tidy && go mod vendor` once we find the reason why ci workflow fails. + cd ./tools && go mod tidy && go mod vendor && go build -o $(OPERATOR_SDK) ./vendor/$(shell grep operator-sdk tools/tools.go | sed 's/.*_ "//;s/"//') # protoc-gen-go gets installed from the vendor/ directory. PROTOC_GEN_GO = $(shell pwd)/bin/protoc-gen-go