rerun
rerun copied to clipboard
Errno::EACCES: Permission denied when using --ignore
I have a static site generator that builds a dist/
folder. The main command is app.rb
and every time it's run, the dist/
folder is rebuilt.
I need to ignore the dist/
folder to use rerun, otherwise it would enter a recursive loop.
So I try: rerun --ignore dist/ "ruby app.rb"
The problem is this does not actually ignore the dist/
files so the recursive loop does occur.
Then I try: rerun --ignore dist/* "ruby app.rb"
The problem here is Errno::EACCES: Permission denied - dist/scripts
which I get when trying to build the dist/
folder. I'm figuring that some part of the --ignore
effect is cutting off my program's access to that folder, when all I want to do is have rerun ignore the file changes there.
I don't know where this error is coming from (no stack trace).
Same issue (on OS X, all recent versions of everything)