halcyon / asdf-java

A Java plugin for asdf-vm.
MIT License
467 stars 86 forks source link

Error during installation openjdk-14.0.2 #103

Closed donbeave closed 4 years ago

donbeave commented 4 years ago

Hello!

I'm getting this error with latest version of asdf and this plugin:

~ ❯ asdf install java openjdk-14.0.2
################################################################################################################################################################################ 100.0%
openjdk-14.0.2_osx-x64_bin.tar.gz
openjdk-14.0.2_osx-x64_bin.tar.gz: FAILED
gsha256sum: WARNING: 1 computed checksum did NOT match
tar: Error opening archive: Unrecognized archive format
ls: ./*/: No such file or directory
mv: rename Contents/Home/* to /Users/donbeave/.asdf/installs/java/openjdk-14.0.2/*: No such file or directory
donbeave commented 4 years ago

But it works for openjdk-14.0.1 version:

~ ❯ asdf install java openjdk-14.0.1
################################################################################################################################################################################ 100.0%
openjdk-14.0.1_osx-x64_bin.tar.gz
openjdk-14.0.1_osx-x64_bin.tar.gz: OK
joschi commented 4 years ago

@donbeave Thanks for reporting this!

It looks like the people at OpenJDK silently replaced the already released OpenJDK 14.0.2 archives. 🙄 This should be fixed with the next refresh of release meta data (refs https://github.com/joschi/java-metadata/commit/008e74ee2b73471ba2b8689935d7e7dc262d0013) in this repository.

joschi commented 4 years ago

It's working now:

% uname -a
Darwin localhost 19.6.0 Darwin Kernel Version 19.6.0: Sun Jul  5 00:43:10 PDT 2020; root:xnu-6153.141.1~9/RELEASE_X86_64 x86_64

% asdf install java openjdk-14.0.2
################################################## 100,0%
openjdk-14.0.2_osx-x64_bin.tar.gz
openjdk-14.0.2_osx-x64_bin.tar.gz: OK

% asdf shell java openjdk-14.0.2

% java -version
openjdk version "14.0.2" 2020-07-14
OpenJDK Runtime Environment (build 14.0.2+12-46)
OpenJDK 64-Bit Server VM (build 14.0.2+12-46, mixed mode, sharing)
donbeave commented 4 years ago

@joschi thank you so much!!