nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.56k stars 2.36k forks source link

bug(nx): ignores .nxignore, scans docker volume and crashes #13030

Closed korrupt closed 1 year ago

korrupt commented 1 year ago

Current Behavior

Nx scans ignored folders. Node then tries to scan mounted docker volume (postgres-data), and gets an EACCESS exception.

Expected Behavior

Works if you go back to nx@14.5.10

Steps to Reproduce

Reproduction repo: https://github.com/korrupt/nx-scandir-reproduction-repo

Steps:

npx create-nx-workspace
docker compose up -d
nx report

Failure Logs

$ nx report

 >  NX   EACCES: permission denied, scandir '/home/korrupt/code/scandir-issue/database/data'

Environment

Node : 18.12.0 OS : linux x64 npm : 8.19.2

nx : 15.0.10 @nrwl/angular : Not Found @nrwl/cypress : Not Found @nrwl/detox : Not Found @nrwl/devkit : Not Found @nrwl/esbuild : Not Found @nrwl/eslint-plugin-nx : Not Found @nrwl/expo : Not Found @nrwl/express : Not Found @nrwl/jest : Not Found @nrwl/js : Not Found @nrwl/linter : Not Found @nrwl/nest : Not Found @nrwl/next : Not Found @nrwl/node : Not Found @nrwl/nx-cloud : Not Found @nrwl/nx-plugin : Not Found @nrwl/react : Not Found @nrwl/react-native : Not Found @nrwl/rollup : Not Found @nrwl/schematics : Not Found @nrwl/storybook : Not Found @nrwl/web : Not Found @nrwl/webpack : Not Found @nrwl/workspace : Not Found typescript : Not Found

Local workspace plugins:

Community plugins:

github-actions[bot] commented 1 year ago

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.