graalvm / graalvm/mx

Allow --java-home to be relative

Open
#207 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
205
Forks
129
PR merge metrics
No merged PRs in 30d

Description

I think --java-home needs to be absolute, or it doesn't keep the relative directory when it changes working directory, but then it's hard to understand why it isn't working.

Could we relax that requirement, and allow it to be relative, perhaps by making it absolute when the mx command starts?

Failing that, could we warn the user when they give a relative path?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the command-line handling for --java-home and trace how the path is used after mx changes its working directory. Confirm the desired behavior for relative paths, then verify that a relative value is resolved consistently or that the user receives a warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.