From b6b4338aed8defb44eee71da908140d702726fe8 Mon Sep 17 00:00:00 2001 From: hadar-co Date: Sun, 9 Jul 2023 16:22:36 +0300 Subject: [PATCH] fix: remove defaultRules.yaml before running make test (#955) * fix: remove defaultRules.yaml before running make test * fix: update comment Co-authored-by: Roy Hadad <39004075+royhadad@users.noreply.github.com> --------- Co-authored-by: Roy Hadad <39004075+royhadad@users.noreply.github.com> --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 921488268f..958af2abf4 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,9 @@ build-windows-amd: GOOS=windows GOARCH=amd64 go build -tags $(or $(datree_build_env),staging) -ldflags="-X github.com/datreeio/datree/cmd.CliVersion=1.0.0" test: + # when changing rule logic in the project's defaultRules.yaml, we want to ensure our new logic is used when running "make test" + # if we don't delete `defaultRules.yaml`, the tests will use the old logic + rm -f ~/.datree/defaultRules.yaml go test ./... create-bin: