Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom repositories for scala-library in repl #520

Merged
merged 1 commit into from
Jan 10, 2022

Conversation

tpasternak
Copy link
Contributor

It is now possible to run scala-cli -S 2.13.8-foobar --repository https://<some_repo>

closes #107

It is now possible to run `scala-cli -S 2.13.8-foobar --repository https://<some_repo>`
@romanowski romanowski merged commit 4f3f72f into VirtusLab:master Jan 10, 2022
@SethTisue
Copy link
Contributor

nice!! thanks!

@SethTisue
Copy link
Contributor

SethTisue commented Feb 2, 2022

I've added this to https://stackoverflow.com/questions/40622878/how-do-i-tell-sbt-or-scala-cli-to-use-a-nightly-build-of-scala-2-12-or-2-13

@SethTisue
Copy link
Contributor

SethTisue commented Nov 30, 2022

I'm trying to use this to run a Scala 2 PR validation snapshot:

% scala-cli -version
Scala CLI version: 0.1.18
Scala version (default): 3.2.1
% scala-cli repl --repository https://scala-ci.typesafe.com/artifactory/scala-pr-validation-snapshots \
  -S 2.13.11-bin-89f3de5-SNAPSHOT

but it fails:

[error]  Cannot find matching Scala version for '2.13.11-bin-89f3de5-SNAPSHOT'
You can only choose one of the 3.x, 2.13.x, and 2.12.x. versions.
The latest supported stable versions are 3.2.0, 2.13.10, 2.12.17.
In addition, you can request compilation with the last nightly versions of Scala,
by passing the 2.nightly, 2.12.nightly, 2.13.nightly, or 3.nightly arguments.
Specific Scala 2 or Scala 3 nightly versions are also accepted.

in sbt, the same thing succeeds; with this build.sbt I can run sbt console:

ThisBuild / resolvers +=
  "prs" at "https://scala-ci.typesafe.com/artifactory/scala-pr-validation-snapshots"
scalaVersion := "2.13.11-bin-89f3de5-SNAPSHOT"

@lwronski
Copy link
Contributor

lwronski commented Dec 1, 2022

I'm trying to use this to run a Scala 2 PR validation snapshot:

% scala-cli -version
Scala CLI version: 0.1.18
Scala version (default): 3.2.1
% scala-cli repl --repository https://scala-ci.typesafe.com/artifactory/scala-pr-validation-snapshots \
  -S 2.13.11-bin-89f3de5-SNAPSHOT

but it fails:

[error]  Cannot find matching Scala version for '2.13.11-bin-89f3de5-SNAPSHOT'
You can only choose one of the 3.x, 2.13.x, and 2.12.x. versions.
The latest supported stable versions are 3.2.0, 2.13.10, 2.12.17.
In addition, you can request compilation with the last nightly versions of Scala,
by passing the 2.nightly, 2.12.nightly, 2.13.nightly, or 3.nightly arguments.
Specific Scala 2 or Scala 3 nightly versions are also accepted.

in sbt, the same thing succeeds; with this build.sbt I can run sbt console:

ThisBuild / resolvers +=
  "prs" at "https://scala-ci.typesafe.com/artifactory/scala-pr-validation-snapshots"
scalaVersion := "2.13.11-bin-89f3de5-SNAPSHOT"

@SethTisue Thanks for reporting, it should be fixed by #1630. Thanks for finding the bug, unfortunately there is no workaround now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support running Scala 2 nightlies (and PR validation snapshots)
4 participants