-
Notifications
You must be signed in to change notification settings - Fork 40.9k
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
bootBuildImage runs forever when a custom image name is used and the version contains an illegal character #23115
Comments
Thanks for the example app.
The Spring Boot Gradle plugin and the Paketo CNB builder that The
If you provide the same image reference to the
I was able to re-create this, but not consistently. When it does appear to hang, Gradle is repeatedly acquiring and releasing a lock on the daemon. Changing |
Yes I saw the same acquiring/releasing lock message when I run it with As context to the version, this was generated by the nebula release plugin, but you can turn of this
https://github.com/nebula-plugins/nebula-release-plugin#sanitize-versions in case someone has the same issue |
I've narrowed this down to a complex regular expression that Spring Boot uses to parse an image reference to make sure it's valid before passing it off to downstream APIs. Providing an image reference Marking this as a bug in |
I've just spent about 6 hrs looking why
is just silently freezes. Also found release/lock loop messages but not the problem itself. Resolved just thanksfully to this issue! |
We discussed this again and think it's a good idea to review the regex patterns. If we can't improve them then we're going to do the work in a thread and add a timeout. |
I noticed that when I have for example a
+
in the version the build fails, which is ok I guess. But when I have a+
in the version and set a custom image name e.g:and
the build image job runs forever.
See this example app here:
https://github.com/mxab/spring-boot-illegal-version-custom-name-problem
The text was updated successfully, but these errors were encountered: