Skip to content

Instantly share code, notes, and snippets.

@denzhel
Created April 22, 2021 04:39
Show Gist options
  • Select an option

  • Save denzhel/7845d711ecd73e49290e06e2413f061d to your computer and use it in GitHub Desktop.

Select an option

Save denzhel/7845d711ecd73e49290e06e2413f061d to your computer and use it in GitHub Desktop.
fix travis scala download error

If you're getting the following error while using travis CI:

Downloading sbt launcher for 1.2.6:
221  From  https://repo.scala-sbt.org/scalasbt/maven-releases/org/scala-sbt/sbt-launch/1.2.6/sbt-launch-1.2.6.jar
222    To  /home/travis/.sbt/launchers/1.2.6/sbt-launch.jar
223Downloading sbt launcher 1.2.6 md5 hash:
224  From  https://repo.scala-sbt.org/scalasbt/maven-releases/org/scala-sbt/sbt-launch/1.2.6/sbt-launch-1.2.6.jar.md5
225    To  /home/travis/.sbt/launchers/1.2.6/sbt-launch.jar.md5
226cat: /home/travis/.sbt/launchers/1.2.6/sbt-launch.jar.md5: No such file or directory
227md5sum: 'standard input': no properly formatted MD5 checksum lines found

Add the following flags to the sbt command:

sbt -sbt-launch-repo https://repo1.maven.org/maven2 ++$TRAVIS_SCALA_VERSION test

#scala #travis-ci #java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment