google / google-java-format

Reformats Java source code to comply with Google Java Style.
Other
5.58k stars 855 forks source link

1.20.0 binaries reports incorrect version (HEAD-SNAPSHOT) when called with the -v flag #1068

Closed abceleung closed 7 months ago

abceleung commented 7 months ago

Hi, I downloaded the Linux and Windows version of the google-java-format binaries (added in 1.20.0).

Both of them outputs google-java-format: Version HEAD-SNAPSHOT when called with the -v flag. Is this intended behavior?

The jar version correctly outputs google-java-format: Version 1.20.0.

cushon commented 7 months ago

Thanks, I fixed the release process to update the versions for the native image builds, the next release should include correct version numbers

cushon commented 7 months ago

The fix has been released in https://github.com/google/google-java-format/releases/tag/v1.21.0

$ ./google-java-format_darwin-arm64 -version
google-java-format: Version 1.21.0