- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 637
Description
Bug report
while adding a .sdkmanrc file to a legacy Java 8 project workspace, I noticed there was a newer release of Java 8 than what I had installed. so I updated the contents from java=8.0.432-zulu to java=8.0.452-zulu, and (as per the instructions printed out when I opened a terminal in that folder) I ran sdk env install.
but as part of this process, SDKman also updated my global default Java version to 8.0.452. the console output appears to have prompted me to do this, but I did not have any chance to interact with this "prompt", SDKman just did this automatically...
I'm opting to log this as a "bug report" instead of an "feature request" because the runtime output shows a user prompt that I did not have any chance to respond to. terminal output included below for reference:
 ~/workspace/nortech/projects/my-secret-project | develop >16 !10 ?2
> cat .sdkmanrc
java=8.0.452-zulu
 ~/workspace/nortech/projects/my-secret-project | develop >16 !10 ?2
> cd ..
Restored java version to 21.0.7-tem (default)
 ~/workspace/nortech/projects
> cd my-secret-project/
Stop! java 8.0.452-zulu is not installed.
Run 'sdk env install' to install it.
 ~/workspace/nortech/projects/my-secret-project | develop >16 !10 ?2
> sdk env install
Downloading: java 8.0.452-zulu
In progress...
######################################################################## 100.0%
Repackaging Java 8.0.452-zulu...
Stop! java 8.0.452-zulu is not installed.
Run 'sdk env install' to install it.
Done repackaging...
Installing: java 8.0.452-zulu
Done installing!
Do you want java 8.0.452-zulu to be set as default? (Y/n): 
Setting java 8.0.452-zulu as default.
Using java version 8.0.452-zulu in this shell.
 ~/workspace/nortech/projects/my-secret-project | develop >16 !10 ?2
> cd ..
Restored java version to 8.0.452-zulu (default)
To reproduce
- set a Java version in .sdkmanrcthat is not currently installed
- execute sdk env installfrom project directory
System info
- MacBook Pro M1
- macOS Sequoia 15.5
- Warp terminal
- Zsh