Skip to content
This repository was archived by the owner on Jun 6, 2024. It is now read-only.

Commit b6b4338

Browse files
hadar-coroyhadad
hadar-co
andauthored
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 <[email protected]> --------- Co-authored-by: Roy Hadad <[email protected]>
1 parent 38b1f68 commit b6b4338

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ build-windows-amd:
2020
GOOS=windows GOARCH=amd64 go build -tags $(or $(datree_build_env),staging) -ldflags="-X github.com/datreeio/datree/cmd.CliVersion=1.0.0"
2121

2222
test:
23+
# when changing rule logic in the project's defaultRules.yaml, we want to ensure our new logic is used when running "make test"
24+
# if we don't delete `defaultRules.yaml`, the tests will use the old logic
25+
rm -f ~/.datree/defaultRules.yaml
2326
go test ./...
2427

2528
create-bin:

0 commit comments

Comments
 (0)