You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
New pub packages that are not compatible with the current Dart SDK result in "Failed to install" messages #3138
When checking Global Pub package versions, we do this:
Check the latest version mentioned in the Pub API results
If it's below the installed version, run pub global activate
Check the newly-installed version and if there's a mismatch, assume installation failed
However right now there are a lot of published packages with null-safety that have a version constraint that makes them incompatible with the current Dart SDK. This means the last step fails. This breaks some integration tests, but could also show up for users if any of the packages we actually use (outside of tests) like DevTools or Stagehand published an update that didn't work on the current SDK either.
Made a simple fix for this, to not consider UpdateAvailable an error after updating. It still means we could prompt to update when there isn't really an update, but this situation is probably an edge case and unlikely to apply to any actual packages we use (it happens in the tests a lot because we just activate some "random" packages for testing).
Activity
DanTup commentedon Feb 10, 2021
Made a simple fix for this, to not consider UpdateAvailable an error after updating. It still means we could prompt to update when there isn't really an update, but this situation is probably an edge case and unlikely to apply to any actual packages we use (it happens in the tests a lot because we just
activatesome "random" packages for testing).