Skip to content

Commit cd52070

Browse files
committed
warn when running console instead of repl
1 parent 9a79c14 commit cd52070

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

project/Build.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2138,6 +2138,10 @@ object Build {
21382138
// default.
21392139
addCommandAlias("publishLocal", "scala3-bootstrapped/publishLocal"),
21402140
repl := (`scala3-compiler-bootstrapped` / repl).value,
2141+
(Compile / console) := (Compile / console).dependsOn(Def.task {
2142+
import _root_.scala.io.AnsiColor._
2143+
streams.value.log.warn(s"${BOLD}`console` uses the reference Scala version. Use `repl` instead.$RESET")
2144+
}).value,
21412145
).
21422146
settings(
21432147
publish / skip := true

0 commit comments

Comments
 (0)