Skip to content

Commit 237744f

Browse files
authored
Give more instructions on java format fix
Pull Request resolved: #5144
1 parent cb944b7 commit 237744f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/lint.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ jobs:
6969
extension/android/benchmark/app/src/main/java/org/pytorch/minibench/*.java)
7070
if [ -n "$FILES_NEEDS_FORMAT" ]; then
7171
echo "Warning: The following files need formatting. Please use google-java-format."
72-
echo "$FILES_NEEDS_FORMAT"
72+
echo "Use a binary from https://github.com/google/google-java-format/releases/"
73+
echo "For example:"
74+
echo "wget https://github.com/google/google-java-format/releases/download/v1.23.0/google-java-format_linux-x86-64"
75+
echo "chmod +x google-java-format_linux-x86-64"
76+
echo "./google-java-format_linux-x86-64 -i $FILES_NEEDS_FORMAT"
7377
exit 1
7478
fi

0 commit comments

Comments
 (0)