-
-
Notifications
You must be signed in to change notification settings - Fork 642
Open
Labels
Description
Bug report
The code at this line uses:
if [[ -f .sdkmanrc ]]; thenThis only checks for the presence of .sdkmanrc in the current working directory. If the user cd's into a subfolder (e.g., inside a module of a multimodule project), SDKMAN! will not detect the project's .sdkmanrc file located in a parent directory.
Steps to reproduce:
- Place a
.sdkmanrcfile in your project root. - cd into a subdirectory or module.
- Run SDKMAN! commands that depend on
.sdkmanrc.
Actual behavior:
SDKMAN! does not pick up the .sdkmanrc file.
Expected behavior:
SDKMAN! should detect .sdkmanrc from a parent directory when invoked from subfolders, similar to how tools like Git discover .git directories.