mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-22 00:41:28 +00:00
Atlas: Use copyFileWithPermissions to copy nim executable (#21967)
Use copyFileWithPermissions to copy nim executable Co-authored-by: SirOlaf <>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user