Closed mh182 closed 1 year ago
This functionality will be removed shortly, along with all other reminders. The self update nagging and broadcast messages have already been removed and all this is already available on our beta channel.
@mh182 Right, I've taken a deeper dive into this. There is no interactive upgrade notification (this was removed as part of the 5.18.0
release), but just an update notification (asking you to refresh the candidate cache).
I've opened a new PR #1197 that removes this nag and no longer checks to see if your candidate cache is out of date. It means that if a new candidate is added to SDKMAN, you would need to run sdk update
explicitly to discover and start using it. These details are clearly laid out in sdk help update
.
Sorry, I meant "update" and not "upgrade". Thanks for the change.
Bug report Calling
sdk home
checks forsdk
upgrade and asks interactively for an upgrade even if called within a script.To reproduce
sdk install
(for examplesdk install doctoolchain 2.2.1
sdk home
Echo home directory of installed docToolchain version
Returns 0 if installed, otherwise 1
sdk_home_doctoolchain() { local version=${1}
}
echo "Location of docToolchain: $(sdk_home_doctoolchain 2.2.1)"
➜ sdk home doctoolchain 2.2.1 2>/dev/null
We periodically need to update the local cache. Please run:
$ sdk update
/home/max/.local/share/sdkman/candidates/doctoolchain/2.2.1
sdkman_auto_answer=false sdkman_auto_update=true
➜ bash --version GNU bash, Version 5.2.15(1)-release (x86_64-pc-linux-gnu)
➜ sdk version We periodically need to update the local cache. Please run:
$ sdk update
SDKMAN! script: 5.18.0 native: 0.1.3