Describe the bug
I have a monorepo with a bunch of packages written in TS. At the root is the Flutter front-end project and a node_modules for pnpm dependencies. It is oddly specific, but if I have the npm firebase package installed through pnpm, and I run dart run custom_lint, the following exception is thrown:
I find this oddly specific, because I couldn't reproduce the issue by installing the same dependency through npm install instead, or installing a different package through pnpm.
I have tried to exclude node_modules from analysis_options.yaml, but to no avail. It feels nonsensical for custom_lint to try and go lint node_modules.
I am also under the impression this causes some slowdowns to static analysis, but I have not tested it.
To Reproduce
I set up a minimal reproductible example at the following link. Steps for setup are in the readme.
Expected behavior
Able to run dart run custom_lint in pnpm workspace
Describe the bug I have a monorepo with a bunch of packages written in TS. At the root is the Flutter front-end project and a node_modules for pnpm dependencies. It is oddly specific, but if I have the npm firebase package installed through pnpm, and I run
dart run custom_lint
, the following exception is thrown:Exception
``` W:\DevXpress\custom_lint_issue_repro> dart run custom_lint Building package executable... Built custom_lint:custom_lint. PathNotFoundException: Directory listing failed, path = 'W:\DevXpress\custom_lint_issue_repro\node_modules\.pnpm\@firebase+firestore-compat@0.3.39_@firebase+app-compat@0.2.45_@firebase+app-types@0.9.2_@firebase+app@0.10.15\node_modules\@firebase\firestore\dist\firestore\test\unit\remote\bloom_filter_golden_test_data\*' (OS Error: The system cannot find the path specified. , errno = 3) #0 _Directory._fillWithDirectoryListing (dart:io-patch/directory_patch.dart:42:24) #1 _Directory.listSync (dart:io/directory_impl.dart:228:5) #2 _findRoots (package:custom_lint/src/workspace.dart:411:20) #3 _SyncStarIterator.moveNext (dart:async-patch/async_patch.dart:560:14) #4 ExpandIterator.moveNext (dart:_internal/iterable.dart:487:32) #5 SetBase.addAll (dart:collection/set.dart:58:23) #6 _Set.addAll (dart:collection-patch/compact_hash.dart:986:11) #7 new LinkedHashSet.of (dart:collection/linked_hash_set.dart:192:27) #8 Iterable.toSet (dart:core/iterable.dart:513:21) #9 CustomLintWorkspace.fromPaths (package:custom_lint/src/workspace.dart:440:10) #10 _runServer.I find this oddly specific, because I couldn't reproduce the issue by installing the same dependency through
npm install
instead, or installing a different package through pnpm.I have tried to exclude node_modules from analysis_options.yaml, but to no avail. It feels nonsensical for custom_lint to try and go lint node_modules.
I am also under the impression this causes some slowdowns to static analysis, but I have not tested it.
To Reproduce
I set up a minimal reproductible example at the following link. Steps for setup are in the readme.
Expected behavior Able to run
dart run custom_lint
in pnpm workspace