scalacenter / homebrew-bloop

Homebrew formula for Bloop
Other
2 stars 7 forks source link

Keep getting download error: Caught javax.net.ssl.SSLHandshakeException #18

Open jcakstins opened 3 years ago

jcakstins commented 3 years ago

Hi, I tried installing bloop following MacOs instructions on installation guide but I keep getting the following error.


Downloading https://github.com/coursier/jvm-index/raw/master/index.json
Downloaded https://github.com/coursier/jvm-index/raw/master/index.json
Exception in thread "main" java.lang.Exception: Error while getting https://github.com/coursier/jvm-index/raw/master/index.json: download error: Caught javax.net.ssl.SSLHandshakeException (PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target) while downloading https://github.com/coursier/jvm-index/raw/master/index.json
    at coursier.jvm.JvmIndex$.$anonfun$load$5(JvmIndex.scala:147)
    at coursier.jvm.JvmIndex$.$anonfun$load$5$adapted(JvmIndex.scala:145)
    at coursier.util.Task$.$anonfun$flatMap$extension$1(Task.scala:14)
    at coursier.util.Task$.$anonfun$flatMap$extension$1$adapted(Task.scala:14)
    at coursier.util.Task$.wrap(Task.scala:83)
    at coursier.util.Task$.$anonfun$flatMap$2(Task.scala:14)
    at scala.concurrent.Future.$anonfun$flatMap$1(Future.scala:307)
    at scala.concurrent.impl.Promise.$anonfun$transformWith$1(Promise.scala:41)
    at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:833)```
tgodzik commented 3 years ago

Thanks for reporting! This seems to be related to https://github.com/coursier/coursier/issues/1989, however I am not sure why it even tries to download that index.json file since JDK should already be installed using brew.

As an alternative you could try using a bootstraped coursier jar to install Bloop with coursier as suggested in the comments.

alexarchambault commented 3 years ago

Not sure what the root of this issue is, but ideally, the Bloop brew formula shouldn't use coursier. It should just download the Bloop binary itself. This is basically what it does currently, but indirectly via coursier. Using coursier here doesn't add or help for anything.

tgodzik commented 3 years ago

It's probably a leftover of when we installed bloop-jvm by default.