dart-lang / pub

The pub command line tool

Home Page:https://dart.dev/tools/pub/cmd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve handling of faulty binstubs

sigurdm opened this issue · comments

Related to #4225
In case of:

  • bad package name
  • Failing to parse properties
  • ....

We should degrade gracefully.
We could either:

  • assert that they are owned by someone else (emit diagnostic, leave binstub, but don't crash)
  • assert that they are broken (delete and recreate)

@jonasfj WDYT?