Skip to content

Commit 7dc9327

Browse files
authored
fix: allow to pass inputs to scala3-repl/run (#24499)
When running the REPL, we would like to pass some flags, say `scala3-repl/run --help`. Before this PR, that was not possible since the defined task didn't take inputs. In this PR, we change this behavior by allowing it to take inputs while at the same time preserving the already provided ones.
2 parents 0470ec1 + 7c12efd commit 7dc9327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project/Build.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ object Build {
11741174
//val classpath = s"-classpath ${(`scala-library-bootstrapped` / Compile / packageBin).value}"
11751175
// TODO: We should use the val above instead of `-usejavacp` below. SBT crashes we we have a val and we call toTask
11761176
// with it as a parameter. THIS IS NOT A LEGIT USE CASE OF THE `-usejavacp` FLAG.
1177-
(Compile / run).toTask(" -usejavacp").value
1177+
(Compile / run).partialInput(" -usejavacp").evaluated
11781178
},
11791179
bspEnabled := false,
11801180
)

0 commit comments

Comments
 (0)