Skip to content

Commit 4364c10

Browse files
authored
Merge pull request #2328 from sjrd/update-getting-started-for-latest-cs
Update the Getting Started page(s) for the latest `cs` behavior.
2 parents 4aa78e1 + 1dd5138 commit 4364c10

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

_includes/getting-started.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,24 @@ Along with managing JVMs, `cs setup` also installs useful command-line tools:
3434
- The [sbt](https://www.scala-sbt.org/) build tool
3535
- [Ammonite](https://ammonite.io/), an enhanced REPL
3636
- [scalafmt](https://scalameta.org/scalafmt/), the Scala code formatter
37-
- `scalac` (the Scala 2 compiler)
38-
- `scala` (the Scala 2 REPL and script runner).
37+
- `scalac` (the Scala compiler)
38+
- `scala` (the Scala REPL and script runner).
3939

4040
For more information about `cs`, read
4141
[coursier-cli documentation](https://get-coursier.io/docs/cli-overview).
4242

43-
> Currently, `cs setup` installs the Scala 2 compiler and runner (the `scalac` and
44-
> `scala` commands, respectively). This is usually not an issue because most projects
45-
> use a build tool that works with both Scala 2 and Scala 3.
46-
> Nevertheless, you can install the Scala 3 compiler and runner as command-line tools
47-
> by running the following additional commands:
43+
> `cs setup` installs the Scala 3 compiler and runner by default (the `scalac` and
44+
> `scala` commands, respectively). Whether you intend to use Scala 2 or 3,
45+
> this is usually not an issue because most projects use a build tool that will
46+
> use the correct version of Scala irrespective of the one installed "globally".
47+
> Nevertheless, you can always launch a specific version of Scala using
4848
> ```
49-
> $ cs install scala3-compiler
50-
> $ cs install scala3
49+
> $ cs launch scala:{{ site.scala-version }}
50+
> $ cs launch scalac:{{ site.scala-version }}
51+
> ```
52+
> If you prefer Scala 2 to be run by default, you can force that version to be installed with:
53+
> ```
54+
> $ cs install scala:{{ site.scala-version }} scalac:{{ site.scala-version }}
5155
> ```
5256
5357
### ...or manually
@@ -164,7 +168,7 @@ There are a multitude of mailing lists and real-time chat rooms in case you want
164168
165169
<!-- Hidden elements whose content are used to provide OS-specific download instructions.
166170
-- This is handled in `resources/js/functions.js`.
167-
-->
171+
-->
168172
<div style="display:none" id="stepOne-linux">
169173
<code class="hljs">$ curl -fLo cs https://git.io/coursier-cli-linux && chmod +x cs && ./cs setup </code> <br>
170174
</div>

0 commit comments

Comments
 (0)