-
Notifications
You must be signed in to change notification settings - Fork 700
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
JAVA_HOME is not set correctly on MacOS for local (jdkFile) installed JDKs that are present in the tool cache #396
Comments
hi @erwin1, thank you for the report. We will take a look at it |
By the way, could you provide us public repo with repro steps? |
Thanks. Here's a public repo: https://github.com/erwin1/setup-java-mac-sscce Although I was able to reproduce with a trick to use setup-java again in the same job. This fails: And using the proposed fix from #397 it works: |
added 2 unit tests of which one fails ( |
Any chance we can move this forward? |
hi @erwin1, sorry for the delayed answer, thank you for the repo I will take a look again :) |
We are still regularly running into this issue, so it would be great to get a review on the PR. Thanks! |
Hello @erwin1. We've merged your pull request. For now you can try to use this changes with For now I'm going to reopen it until we release a new version. |
Thanks, using |
Hi, @erwin1 👋 The new version of the setup-java is released. Please, check it out. I'm going to close this issue, If you have any additions or questions feel free to ping us. |
Description:
Local installed JDKs using the jdkFile option that are already present in the tool cache are not checked for suffix 'Contents/Home' on macos, so as a result the JAVA_HOME is not set correctly.
Task version:
v3
Platform:
Runner type:
Repro steps:
Expected behavior:
When the JDK is available in the tool cache, JAVA_HOME must be set correctly.
Actual behavior:
When the JDK is available in the tool cache, JAVA_HOME is set without checking if the JDK is placed in 'Contents/Home'
The text was updated successfully, but these errors were encountered: