setup-scala
setup-scala copied to clipboard
jabba issues
Hey,
I am getting the following 2 issues, related to jabba:
-
Error: exec: GET https://github.com/shyiko/jabba/raw/master/index.json returned 503 -
Error: exec: /root/bin/jabba: line 1: syntax error near unexpected token `newline' -
exec: /root/bin/jabba: line 1: !DOCTYPE: No such file or directory -
Error: exec: Downloading [email protected] (https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u292-b10/OpenJDK8U-jdk_x64_linux_hotspot_8u292b10.tar.gz) Extracting /tmp/jabba-d-744477946 to /root/.jabba/jdk/[email protected] gzip: invalid header
These are transient issues that resolve themselves after a rerun, but it's still annoying to keep getting these unexpectedly, sporadically and periodically.
Could you look into it?
Thanks!
is setup-scala giving you something you specifically need that setup-java by itself doesn't provide? if not, consider just using setup-java instead. (setup-java doesn't involve Jabba)
for context, see https://twitter.com/olafurpg/status/1449455082614009863
I've now opened https://github.com/olafurpg/setup-scala/issues/49 so we have a ticket-of-record on the overall situation
No idea if it makes a difference, but Typelevel maintains its own Jabba index https://github.com/typelevel/jdk-index. Might be worth a try, I don't recall any such issues recently on projects using it.
@armanbilge Aha, thanks for the pointer!
I would say though, that a better way to resolve this issue is for setup-scala to be based on setup-java and additionally just install sbt. I'll try to create a PR soon :)
For reference, see https://github.com/actions/setup-java/issues/266
@dimisjim IIUC sbt is already installed in GH actions runners by default. So, actually you can just use setup-java and call it a day :)
Not really. See https://github.com/actions/setup-java/issues/266