dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.23k stars 1.57k forks source link

New quick-fix to fix `invalid_dependency` in pubspec.yaml #56647

Open FMorschel opened 2 months ago

FMorschel commented 2 months ago

I'd like to request a new quick-fix for the pubspec.yaml to fix invalid_dependency where it adds the publish_to: none as suggested by the warning description.

image

Not sure this can be done now (if we support assists/quick-fixes in non-dart files), but it's not critical in any way, just a helping hand for someone like me who has lots of internal packages inside my company that depend on each other.

dart-github-bot commented 2 months ago

Summary: The user requests a quick-fix for invalid_dependency errors in pubspec.yaml files. The proposed fix adds publish_to: none to the file, as suggested by the warning message.