Skip to content

Conversation

hgeraldino
Copy link

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

@hgeraldino hgeraldino self-assigned this Aug 19, 2022
@hgeraldino hgeraldino requested a review from a team August 19, 2022 19:52
Copy link
Member

@marc0der marc0der left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work! I'll deploy this as soon as possible so you can start playing with it.

@marc0der marc0der merged commit 9148233 into sdkman:master Aug 30, 2022
@marc0der
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants