Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not attempt to read a folder as if it were a file #89

Open
Li0liQ opened this issue Nov 28, 2019 · 0 comments
Open

Do not attempt to read a folder as if it were a file #89

Li0liQ opened this issue Nov 28, 2019 · 0 comments

Comments

@Li0liQ
Copy link
Contributor

Li0liQ commented Nov 28, 2019

Sometimes stricter confuses folders and files and tries to perform illegal operations on them:

Error: EISDIR: illegal operation on a directory, read
    at tryReadSync (fs.js:332:20)
    at Object.readSync (fs.js:498:3)
    at Object.readFileSync (fs.js:369:19)
    at readFile (/Users/user/project/node_modules/stricter/lib/index.js:31:26)
    at readFileData (/Users/user/project/node_modules/stricter/lib/index.js:484:18)
    at files.reduce (/Users/user/project/node_modules/stricter/lib/index.js:526:21)
    at Array.reduce (<anonymous>)
    at processFiles (/Users/user/project/node_modules/stricter/lib/index.js:525:27)
    at parseDependencies (/Users/user/project/node_modules/stricter/lib/index.js:1419:21)
    at getDependantHash (/Users/user/project/scripts/common/dependencies-analysis/index.js:58:26)
    at getImplicitlyModifiedFiles (/Users/user/project/scripts/common/files/get-affected-files.js:43:27)
    at getAffectedFiles (/Users/user/project/scripts/common/files/get-affected-files.js:128:72)
    at getAffectedApps (/Users/user/project/scripts/dependencies/dependency-bump/get-affected-apps.js:41:27)
    at Object.<anonymous> (/Users/user/project/scripts/dependencies/dependency-bump/get-affected-apps.js:50:32)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant