Closed kellyselden closed 8 years ago
I suspect that this is related to the use of process.chdir()
. I've stepped through this a bit and compared it to the situation in broccoli-jshint
with these results:
in Filter.prototype.build()
of broccoli-persistent-filter
:
// jshint
srcDir = '/Users/tbn/Code/broccoli-jshint/tmp/jshinter-input_base_path-t73QiqFS.tmp/0'
// jscs
srcDir = '/Users/tbn/Code/broccoli-jscs/tests/fixtures/issue-found/tmp/input_base_path-1Q3RukVq.tmp/0'
It looks like the chdir()
is causing the tests to use a different tmp
folder which, in combination with the symlinks, causes a cycle in the file system:
ENAMETOOLONG: name too long, stat '/Users/tbn/Code/broccoli-jscs/tests/fixtures/issue-found/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/input_base_path-1Q3RukVq.tmp/0/tmp/cache_path-UHjNblW1.tmp'
Found here: https://github.com/kellyselden/broccoli-jscs/issues/27#issuecomment-167599851
If I revert #41, it goes back to working.
cc @rwjblue @ronco