Skip to content

Commit

Permalink
Check for graffit->skydive imports only in Go files
Browse files Browse the repository at this point in the history
  • Loading branch information
lebauce committed Dec 16, 2020
1 parent 5cdfa64 commit 6e24fb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .mk/check.mk
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ check: lint
echo "===> You should comment you code <==="; \
exit 1; \
fi
unwanteddeps=$$(git grep --text github.com/skydive-project/skydive graffiti | grep -v github.com/skydive-project/skydive/graffiti | grep -v graffiti/gendecoder/main.go | grep -v graffiti/README.md); \
unwanteddeps=$$(git grep --text github.com/skydive-project/skydive "graffiti/*.go" | grep -v github.com/skydive-project/skydive/graffiti | grep -v graffiti/gendecoder/main.go); \
test -z "$$unwanteddeps" || \
(echo -e "Graffiti should not import Skydive only packages:\n$$unwanteddeps" && /bin/false)

Expand Down

0 comments on commit 6e24fb2

Please sign in to comment.