Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spring boot 3.2 jib build is not reproducible #4163

Closed
golosegor opened this issue Jan 8, 2024 · 5 comments
Closed

spring boot 3.2 jib build is not reproducible #4163

golosegor opened this issue Jan 8, 2024 · 5 comments

Comments

@golosegor
Copy link

Environment:

  • Jib version: 3.4.0
  • Build tool: gradle-8.2
  • OS: Ubuntu 23.10

Description of the issue:
Tar build is not reproducible since spring-boot 3.2.0 verison.
Below you could find a demo multi-module project to make a repro:

https://github.com/golosegor/spring-boot-3.2-build-reproducible-issue

Expected behavior:

After 2 execution tar has the same md5 hash code.

Steps to reproduce:

  1. Clone the repo https://github.com/golosegor/spring-boot-3.2-build-reproducible-issue
  2. Execute ./gradlew -q clean jibBuildTar && md5sum user-backend/build/jib-image.tar
    &&./gradlew -q clean jibBuildTar && md5sum user-backend/build/jib-image.tar
  3. Ensure you have the different hash summs

This bug is happening since spring-boot 3.2.0.
In version 3.1.7 no repro is happening.

If build is happening with buildpack - you won't see the issue. Looks like it is jib-related.

@chanseokoh
Copy link
Member

Probably #4141 and #4131.

@golosegor
Copy link
Author

golosegor commented Jan 8, 2024

forcing the plugin version helped, but it would be great if dependencies for jib is embeded (not sure if it is possible) so people are not facing this issue (below code snippet in kotlin dsl)

buildscript { configurations.all { resolutionStrategy { force("org.apache.commons:commons-compress:1.21") } } }

@bjornbugge
Copy link
Contributor

This will probably be closed with #4142

@mpeddada1
Copy link
Contributor

@golosegor Quick update: jib-gradle-plugin:3.4.2 has been release with a fix. Please let us know if this addresses your issue?

@mpeddada1
Copy link
Contributor

Closing due to lack of response and in light of #4204 being released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants