Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/check-no-binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cd "$(git rev-parse --show-toplevel)"
types='application/(x-(executable|pie-executable|sharedlib|object|archive|mach-binary|dosexec)|vnd\.microsoft\.portable-executable|java-archive|x-java-applet|wasm)$'
# Add a pathspec exclusion such as ':!gradle/wrapper/gradle-wrapper.jar' only for a
# binary the repo must carry, with the reason beside it.
found=$(git ls-files -z -- . | xargs -0 -r file --mime-type -- | grep -E "$types" || true)
found=$(git ls-files -z -- . | sed -z 's|^|./|' | xargs -0 -r file --mime-type -- | grep -E "$types" || true)
if [ -n "$found" ]; then
echo "Compiled binaries are tracked; build them from source instead:" >&2
echo "$found" >&2
Expand Down
Loading