Skip to content

Commit 078b645

Browse files
committed
Use named parameters
1 parent ffd5146 commit 078b645

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

runner/daemon/src/mill/daemon/MillBuildBootstrap.scala

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -262,38 +262,39 @@ class MillBuildBootstrap(
262262
case Result.Success((buildFileApi)) =>
263263

264264
Using.resource(makeEvaluator(
265-
projectRoot,
266-
output,
267-
keepGoing,
268-
env,
269-
logger,
270-
ec,
271-
allowPositionalCommandArgs,
272-
systemExit,
273-
streams0,
274-
selectiveExecution,
275-
offline,
276-
newWorkerCache,
277-
nestedState.frames.headOption.map(_.codeSignatures).getOrElse(Map.empty),
278-
buildFileApi.rootModule,
265+
projectRoot = projectRoot,
266+
output = output,
267+
keepGoing = keepGoing,
268+
env = env,
269+
logger = logger,
270+
ec = ec,
271+
allowPositionalCommandArgs = allowPositionalCommandArgs,
272+
systemExit = systemExit,
273+
streams0 = streams0,
274+
selectiveExecution = selectiveExecution,
275+
offline = offline,
276+
workerCache = newWorkerCache,
277+
codeSignatures =
278+
nestedState.frames.headOption.map(_.codeSignatures).getOrElse(Map.empty),
279+
rootModule = buildFileApi.rootModule,
279280
// We want to use the grandparent buildHash, rather than the parent
280281
// buildHash, because the parent build changes are instead detected
281282
// by analyzing the scriptImportGraph in a more fine-grained manner.
282-
nestedState
283+
millClassloaderSigHash = nestedState
283284
.frames
284285
.dropRight(1)
285286
.headOption
286287
.map(_.runClasspath)
287288
.getOrElse(millBootClasspathPathRefs)
288289
.map(p => (os.Path(p.javaPath), p.sig))
289290
.hashCode(),
290-
nestedState
291+
millClassloaderIdentityHash = nestedState
291292
.frames
292293
.headOption
293294
.flatMap(_.classLoaderOpt)
294295
.map(_.hashCode())
295296
.getOrElse(0),
296-
depth,
297+
depth = depth,
297298
actualBuildFileName = nestedState.buildFile,
298299
enableTicker = enableTicker
299300
)) { evaluator =>

0 commit comments

Comments
 (0)