Everything in packages/is (usually) a symbolic link to a possible shared copy of the package, so if you edited the file in packages/, you would have edited it for all of your projects, which can be very much not just what you want.
, - , , :
name: my_package
dependency_overrides:
my_other_package:
path: /Users/me/dart/my_other_package
, , pub , . , my_package my_other_package .