diff --git a/boilerplate/flyte/golang_test_targets/Makefile b/boilerplate/flyte/golang_test_targets/Makefile index 2e96156b18..c02409a318 100644 --- a/boilerplate/flyte/golang_test_targets/Makefile +++ b/boilerplate/flyte/golang_test_targets/Makefile @@ -3,6 +3,7 @@ # # TO OPT OUT OF UPDATES, SEE https://github.com/flyteorg/boilerplate/blob/master/Readme.rst +LINT_FLAGS ?= .PHONY: download_tooling download_tooling: #download dependencies (including test deps) for the package @@ -14,11 +15,11 @@ generate: download_tooling #generate go code .PHONY: lint lint: download_tooling #lints the package for common code smells - GL_DEBUG=linters_output,env golangci-lint run --deadline=5m --exclude deprecated -v + GL_DEBUG=linters_output,env golangci-lint run $(LINT_FLAGS) --deadline=5m --exclude deprecated -v .PHONY: lint-fix -lint-fix: download_tooling #lint the package for common code smells. fixes files in-place - GL_DEBUG=linters_output,env golangci-lint run --fix --deadline=5m --exclude deprecated -v +lint-fix: LINT_FLAGS=--fix +lint-fix: lint .PHONY: mod_download mod_download: #download dependencies (including test deps) for the package