Skip to content

Commit

Permalink
Prepare merge
Browse files Browse the repository at this point in the history
  • Loading branch information
lefou committed Apr 13, 2023
1 parent 443e78d commit 619991c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
24 changes: 14 additions & 10 deletions runner/src/mill/runner/MillMain.scala
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,20 @@ object MillMain {

val (result, _) =
try main0(
args,
RunnerState.empty,
mill.util.Util.isInteractive(),
runnerStreams,
bspLog,
System.getenv().asScala.toMap,
b => (),
Map(),
sys.props.toMap
) finally {
args = args,
stateCache = RunnerState.empty,
mainInteractive = mill.util.Util.isInteractive(),
streams0 = runnerStreams,
bspLog = bspLog,
env = System.getenv().asScala.toMap,
setIdle = b => (),
userSpecifiedProperties0 = Map(),
initialSystemProperties = sys.props.toMap
)
finally {
System.setOut(initialSystemStreams.out)
System.setErr(initialSystemStreams.err)
System.setIn(initialSystemStreams.in)
openStreams.foreach(_.close())
}
System.exit(if (result) 0 else 1)
Expand Down
2 changes: 1 addition & 1 deletion runner/src/mill/runner/MillServerMain.scala
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ object MillServerMain extends MillServerMain[RunnerState] {
args = args,
stateCache = stateCache,
mainInteractive = mainInteractive,
streams = streams,
streams0 = streams,
bspLog = None,
env = env,
setIdle = setIdle,
Expand Down

0 comments on commit 619991c

Please sign in to comment.