Skip to content

Commit 43e7a14

Browse files
committed
Use named parameters
1 parent 27a737f commit 43e7a14

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
@@ -217,38 +217,39 @@ class MillBuildBootstrap(
217217
case Result.Success((buildFileApi)) =>
218218

219219
Using.resource(makeEvaluator(
220-
projectRoot,
221-
output,
222-
keepGoing,
223-
env,
224-
logger,
225-
ec,
226-
allowPositionalCommandArgs,
227-
systemExit,
228-
streams0,
229-
selectiveExecution,
230-
offline,
231-
newWorkerCache,
232-
nestedState.frames.headOption.map(_.codeSignatures).getOrElse(Map.empty),
233-
buildFileApi.rootModule,
220+
projectRoot = projectRoot,
221+
output = output,
222+
keepGoing = keepGoing,
223+
env = env,
224+
logger = logger,
225+
ec = ec,
226+
allowPositionalCommandArgs = allowPositionalCommandArgs,
227+
systemExit = systemExit,
228+
streams0 = streams0,
229+
selectiveExecution = selectiveExecution,
230+
offline = offline,
231+
workerCache = newWorkerCache,
232+
codeSignatures =
233+
nestedState.frames.headOption.map(_.codeSignatures).getOrElse(Map.empty),
234+
rootModule = buildFileApi.rootModule,
234235
// We want to use the grandparent buildHash, rather than the parent
235236
// buildHash, because the parent build changes are instead detected
236237
// by analyzing the scriptImportGraph in a more fine-grained manner.
237-
nestedState
238+
millClassloaderSigHash = nestedState
238239
.frames
239240
.dropRight(1)
240241
.headOption
241242
.map(_.runClasspath)
242243
.getOrElse(millBootClasspathPathRefs)
243244
.map(p => (os.Path(p.javaPath), p.sig))
244245
.hashCode(),
245-
nestedState
246+
millClassloaderIdentityHash = nestedState
246247
.frames
247248
.headOption
248249
.flatMap(_.classLoaderOpt)
249250
.map(_.hashCode())
250251
.getOrElse(0),
251-
depth,
252+
depth = depth,
252253
actualBuildFileName = nestedState.buildFile,
253254
enableTicker = enableTicker
254255
)) { evaluator =>

0 commit comments

Comments
 (0)