ronnypolley / posh-sdkman

SDKMan for Powershell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error "Could not unzip the archive of" for kotlin 1.0.3+ and sbt 0.13.11 (flofreud/posh-gvm/issues/21)

ronnypolley opened this issue · comments

Copy of flofreud#21

Utils.ps1 fails here:

if ( !(Test-Path "$Script:PGVM_TEMP_PATH\*-$Version") ) {
        throw "Could not unzip the archive of $Candidate $Version. Please delete archive from $Script:PGVM_ARCHIVES_PATH (or delete all with 'gvm flush archives'"
}

Because sbt and kotlin archives don't have version numbers in inner folders. Moreover, kotlin's folder name is "kotlinc"