Skip to content

Commit 9fb0652

Browse files
committed
WIP
1 parent fd3b85f commit 9fb0652

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

project/settings/package.mill.scala

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -281,21 +281,23 @@ trait CliLaunchers extends SbtModule { self =>
281281
proc.call(stdin = os.Inherit, stdout = os.Inherit)
282282
}
283283
def staticLibDir: T[PathRef] = Task {
284-
val dir = nativeImageDockerWorkingDir() / staticLibDirName
285-
os.makeDir.all(dir)
284+
BuildCtx.withFilesystemCheckerDisabled {
285+
val dir = nativeImageDockerWorkingDir() / staticLibDirName
286+
os.makeDir.all(dir)
287+
288+
if (Properties.isWin) {
289+
copyLibsodiumStaticTo(cs(), dir, BuildCtx.workspaceRoot)
290+
copyLibsodiumjniTo(cs(), dir, BuildCtx.workspaceRoot)
291+
copyCsjniutilTo(cs(), dir, BuildCtx.workspaceRoot)
292+
}
286293

287-
if (Properties.isWin) {
288-
copyLibsodiumStaticTo(cs(), dir, BuildCtx.workspaceRoot)
289-
copyLibsodiumjniTo(cs(), dir, BuildCtx.workspaceRoot)
290-
copyCsjniutilTo(cs(), dir, BuildCtx.workspaceRoot)
291-
}
294+
if (launcherKind == "static") {
295+
copyAlpineLibsodiumTo(cs(), dir, BuildCtx.workspaceRoot)
296+
copyLibsodiumjniTo(cs(), dir, BuildCtx.workspaceRoot)
297+
}
292298

293-
if (launcherKind == "static") {
294-
copyAlpineLibsodiumTo(cs(), dir, BuildCtx.workspaceRoot)
295-
copyLibsodiumjniTo(cs(), dir, BuildCtx.workspaceRoot)
299+
PathRef(dir)
296300
}
297-
298-
PathRef(dir)
299301
}
300302
}
301303

0 commit comments

Comments
 (0)