Fix for recursive nimble calls

This commit is contained in:
Ganesh Viswanathan 2019-05-02 13:42:59 -05:00
commit 83a1cceb4e

View file

@ -36,7 +36,9 @@ proc execNimscript(nimsFile, projectDir, actionName: string, options: Options,
nimsFile.copyFile(nimsFileCopied) nimsFile.copyFile(nimsFileCopied)
defer: defer:
nimsFileCopied.removeFile() # Only if copied in this invocation, allows recursive calls of nimble
if not isScriptResultCopied:
nimsFileCopied.removeFile()
let let
cmd = ("nim e --hints:off --verbosity:0 -p:" & (getTempDir() / "nimblecache").quoteShell & cmd = ("nim e --hints:off --verbosity:0 -p:" & (getTempDir() / "nimblecache").quoteShell &