I get an Access denied error when running a Nake file from Windows even as an admin:
import os
import nake
import times
let dllsDir = os.getCurrentDir()/".dlls"
...
task "clean", "Remove files produced by build":
os.removeFile(os.getCurrentDir()/"nakefile.exe")
os.removeFile(os.getCurrentDir()/"nakefile.ilk")
os.removeFile(os.getCurrentDir()/"nakefile")
os.removeDir(os.getCurrentDir()/".nimcache")
os.removeDir(dllsDir)
...
Throws the following error:
c:\nim\lib\pure\os.nim(1814) removeFile
c:\nim\lib\pure\includes\oserr.nim(94) raiseOSError
Error: unhandled exception: Access is denied.
When just using del from the same CMD terminal I can remove the file without issues.
Any idea why?
Nake don't receive updates since 9 months ago, it is practically deprecated.
I recommend using nimble tasks instead
However, if your project has already grown using nake, it might be hard to migrate... In this case idk what you can do, I never used nake...
I can migrate. Not a problem.
How are nimble tasks different than having tasks inside a config.nims? There is not much documentation about it.