Running "pub deps" unexpectedly modifies .dart_tool/package_config.json (when there are path dependencies) #3016
Labels
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
type-enhancement
A request for a change that isn't a bug
This came up at #2896 (comment).
In VS Code, I'm using
pub deps
to render the dependencies tree. If thepackage_config.json
file is modified, that triggers a refresh of the tree. This results in callingpub deps
again. For some projects, I found that the act of callingpub deps
modified the file, which triggered calling it again (and this went on forever).Attaching a debugger to pub showed it occurring here, because
hasPathDependencies=true
:pub/lib/src/entrypoint.dart
Lines 512 to 520 in c33f264
@jonasfj
The text was updated successfully, but these errors were encountered: