rerun icon indicating copy to clipboard operation
rerun copied to clipboard

Errno::EACCES: Permission denied when using --ignore

Open MaxPleaner opened this issue 8 years ago • 1 comments

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).

MaxPleaner avatar Aug 07 '16 20:08 MaxPleaner

Same issue (on OS X, all recent versions of everything)

marcandre avatar Sep 14 '20 01:09 marcandre