@@ -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