Atlas: Use copyFileWithPermissions to copy nim executable (#21967)

Use copyFileWithPermissions to copy nim executable

Co-authored-by: SirOlaf <>
This commit is contained in:
SirOlaf
2023-05-31 06:26:51 +02:00
committed by GitHub
parent e43a51fcf3
commit bf9ee00998

View File

@@ -891,7 +891,7 @@ proc setupNimEnv(c: var AtlasContext; nimVersion: string) =
let nimExe0 = ".." / csourcesVersion / "bin" / "nim".addFileExt(ExeExt)
withDir c, c.workspace / nimDest:
let nimExe = "bin" / "nim".addFileExt(ExeExt)
copyFile nimExe0, nimExe
copyFileWithPermissions nimExe0, nimExe
let dep = Dependency(name: toName(nimDest), rel: normal, commit: nimVersion)
if not nimVersion.isDevel:
let commit = versionToCommit(c, dep)