-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Revert "Compare bin subdirs of java home on root mismatch [fix 187]" #241
Revert "Compare bin subdirs of java home on root mismatch [fix 187]" #241
Conversation
Really weird, seems both of us are using sdkman on mac. |
Getting back to this thread, I believe the "zulu-sdkman" issue is still present and troubles people from time to time. The fix that was reverted within this MR is actually partially fixing the java home check. The problem is - it's focusing only on the issue but won't work in normal circumstances, so only works for zulu distributions. The In order to handle it properly I believe we can keep the reverted check, but as a fallback, so that we will execute it only in case the primary check fails. So it can end up being something like this snippet(to be polished ofc):
P.S. @runningcode let me know if that makes sense and isn't introducing more complexity. I can throw an MR. |
Hi @slowpacer thanks for trying to find a solution here.
Wouldn't this part above return true if the paths are not equal? Did you mean for that part to have Other than that, your solutions seems like a good idea. |
Hey @runningcode, yeah, apologies, my bad, blindly copy pasted. Indeed should be |
Isn't only checking "the |
From what I see the issue was that your local machine oracle distribution was evaluated against this condition: |
Reverts #240
This doesn't work. I have this issue on my local machine:
See build scan here: https://scans.gradle.com/s/utvdqanc3oila