halcyon / asdf-java

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

Removes silent fail from retrieve-release-data() #200

Closed matsavage closed 1 year ago

matsavage commented 1 year ago

Updates retrieve-release-data() to no longer silently fail, this was causing issues where I was having SSL issues, but could not diagnose them.

Current behavior:

$ asdf list-all java
No compatible versions available (java )

$ asdf install java liberica-1.8.0
grep: /tmp/asdf-java.cache/releases-linux-x86_64.tsv: No such file or directory
Unknown release: liberica-1.8.0

Proposed behaviour:

$ asdf install java liberica-1.8.0
curl: (60) SSL certificate problem: self-signed certificate in certificate chain
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
grep: /tmp/asdf-java.cache/releases-linux-x86_64.tsv: No such file or directory
Unknown release: liberica-1.8.0

I believe this would have also brought some clarity to #173 and #190.