Fix for recursive nimble calls
This commit is contained in:
parent
a437fd33c4
commit
83a1cceb4e
1 changed files with 3 additions and 1 deletions
|
|
@ -36,7 +36,9 @@ proc execNimscript(nimsFile, projectDir, actionName: string, options: Options,
|
|||
nimsFile.copyFile(nimsFileCopied)
|
||||
|
||||
defer:
|
||||
nimsFileCopied.removeFile()
|
||||
# Only if copied in this invocation, allows recursive calls of nimble
|
||||
if not isScriptResultCopied:
|
||||
nimsFileCopied.removeFile()
|
||||
|
||||
let
|
||||
cmd = ("nim e --hints:off --verbosity:0 -p:" & (getTempDir() / "nimblecache").quoteShell &
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue