jib icon indicating copy to clipboard operation
jib copied to clipboard

Version check reports an older release as “new version available”

Open shihyuho opened this issue 1 month ago • 1 comments

Environment:

  • Jib version: 3.5.0
  • Build tool: Maven
  • OS: Mac Tahoe 26.1

Description of the issue:

When using jib-maven-plugin version 3.5.0, the plugin reports that 3.4.6 is a newer version:

[INFO] A new version of jib-maven-plugin (3.4.6) is available (currently using 3.5.0). Update your build configuration to use the latest features and fixes!
[INFO] https://github.com/GoogleContainerTools/jib/blob/master/jib-maven-plugin/CHANGELOG.md
[INFO]
[INFO] Please see https://github.com/GoogleContainerTools/jib/blob/master/docs/privacy.md for info on disabling this update check.

This is incorrect, because 3.4.6 is older than 3.5.0.

Expected behavior:

The plugin should not report an older version as the latest available version.

shihyuho avatar Nov 17 '25 06:11 shihyuho

Hi, I'd like to work on this.

Plan:

  • Fix the update-check logic so version comparison uses semantic versioning (3.5.0 > 3.4.6).
  • Add/update tests for the version comparison.
  • Verify that 3.5.0 does not report 3.4.6 as newer.

If this looks good, I’ll open a PR.

Gautam-aman avatar Dec 07 '25 16:12 Gautam-aman