Skip to content

Commit 7f59f2f

Browse files
tejal29balopat
andcommitted
Enhance hack/check-samples.sh to output difference in dir structure.
Some of the files in the examples directory could be ignored by git e.g. integration/examples/jib-multimodule/target if developers .gitconfig ignore target dir everywhere. Since this script does a file comparison, debugging failures in such situation takes times. Co-authored-by: Balint Pato <[email protected]>
1 parent 7d181a2 commit 7f59f2f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hack/check-samples.sh

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ INTEGRATION_EXAMPLES=$(find integration/examples -mindepth 1 -maxdepth 1 -type d
2121

2222
if [[ "${EXAMPLES}" != "${INTEGRATION_EXAMPLES}" ]]; then
2323
echo "Every code sample that is in ./examples should also be in ./integration/examples"
24+
diff --label "1" --label "2" <(printf "examples:\n${EXAMPLES}" ) <(printf "integration/examples:\n${INTEGRATION_EXAMPLES}")
2425
exit 1
2526
fi
2627

0 commit comments

Comments
 (0)