The idea is for sdkman-cli to skip the post-hooks after downloading the artifacts, perform the checksum, expand the archive (unzip, tar), and move the files to its final destination (under ${SDKMAN_CANDIDATES_DIR}/${candidate}/${version}).
These 'relocation' hooks will be executed at the very end of the pipeline, and will shuffle things around for a very small number of binaries (mainly JDK for OSX and JMC).
This logic moves the logic from the post hooks we have today to a later stage, so we can avoid re-packaging the artifacts (which breaks checksumming).
The idea is for sdkman-cli to skip the post-hooks after downloading the artifacts, perform the checksum, expand the archive (unzip, tar), and move the files to its final destination (under
${SDKMAN_CANDIDATES_DIR}/${candidate}/${version}
).These 'relocation' hooks will be executed at the very end of the pipeline, and will shuffle things around for a very small number of binaries (mainly JDK for OSX and JMC).
This logic moves the logic from the post hooks we have today to a later stage, so we can avoid re-packaging the artifacts (which breaks checksumming).