sdkman / sdkman-hooks

An API responsible for serving up pre- and post- hooks
Other
5 stars 23 forks source link

Add relocation hooks #61

Closed hgeraldino closed 2 years ago

hgeraldino commented 2 years ago

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).

marc0der commented 2 years ago

Related to this one, I'll begin decommissioning the pre-hooks since they are no longer used.