dwijnand / scala-runners

Scala Runners: a Coursier-based alternative implementation
Apache License 2.0
43 stars 5 forks source link

Missing error handling for nonexistent `--scala-pr` #24

Closed SethTisue closed 4 years ago

SethTisue commented 4 years ago
% scala --scala-pr 1234567
Resolution error: Error downloading org.scala-lang:scala-compiler:-bin-null-SNAPSHOT
  not found: https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/-bin-null-SNAPSHOT/scala-compiler--bin-null-SNAPSHOT.pom
  not found: https://scala-ci.typesafe.com/artifactory/scala-pr-validation-snapshots/org/scala-lang/scala-compiler/-bin-null-SNAPSHOT/scala-compiler--bin-null-SNAPSHOT.pom

not a priority, of course...

dwijnand commented 4 years ago

Verbosely logged:

$ scala -v --scala-pr 1234567
[setScalaPrVersion] arg = '1234567'
[getScalaBaseVersion] arg = 'pull/1234567/head'
[setScalaVersion] arg = '-bin-null-SNAPSHOT'
[addCoursier] arg = '-r'
[addCoursier] arg = 'https://scala-ci.typesafe.com/artifactory/scala-pr-validation-snapshots'
# Executing command line:
cs
launch
scala:-bin-null-SNAPSHOT
-r
https://scala-ci.typesafe.com/artifactory/scala-pr-validation-snapshots
--

https://repo1.maven.org/maven2/io/get-coursier/apps/maven-metadata.xml
  No new update since 2020-07-12 21:39:52
Resolution error: Error downloading org.scala-lang:scala-compiler:-bin-null-SNAPSHOT
  not found: /Users/dnw/.ivy2/local/org.scala-lang/scala-compiler/-bin-null-SNAPSHOT/ivys/ivy.xml
  not found: https://repo1.maven.org/maven2/org/scala-lang/scala-compiler/-bin-null-SNAPSHOT/scala-compiler--bin-null-SNAPSHOT.pom
  not found: https://scala-ci.typesafe.com/artifactory/scala-pr-validation-snapshots/org/scala-lang/scala-compiler/-bin-null-SNAPSHOT/scala-compiler--bin-null-SNAPSHOT.pom