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

fix: make sure JAVA_HOME is used in bootstrapped file #2441

Merged
merged 1 commit into from
May 26, 2022
Merged

fix: make sure JAVA_HOME is used in bootstrapped file #2441

merged 1 commit into from
May 26, 2022

Conversation

ckipp01
Copy link
Contributor

@ckipp01 ckipp01 commented May 25, 2022

I came across this for some Metals users that use coursier to bootstrap
a metals executable. The executable just calls java and doesn't
respect JAVA_HOME. This change makes sure that in the shell script if
JAVA_HOME is set, it's used and if not we fall back to java.

Closes #2048

Copy link
Member

@alexarchambault alexarchambault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ckipp01!

That looks great, except for the modules/test/metadata submodule change (that submodule shouldn't be touched by this PR, I think)

@ckipp01
Copy link
Contributor Author

ckipp01 commented May 25, 2022

That looks great, except for the modules/test/metadata submodule change (that submodule shouldn't be touched by this PR, I think)

Ah weird, sorry I didn't even notice that! I'll get rid of it.

I came across this for some Metals users that use coursier to bootstrap
a metals executable. The executable just calls `java` and doesn't
respect `JAVA_HOME`. This change makes sure that in the shell script if
`JAVA_HOME` is set, it's used and if not we fall back to `java`.

Closes #2048
Copy link
Member

@alexarchambault alexarchambault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'll merge as soon as the CI is green.

@alexarchambault alexarchambault merged commit 9c572a6 into coursier:master May 26, 2022
@ckipp01 ckipp01 deleted the javaHome branch May 26, 2022 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JAVA_HOME variable ignored by bash script
2 participants