"pub global run" errors out for a mismatched SDK.
Previously, "pub global run" would happily try to run an executable with an SDK constraint that doesn't match the current SDK, even though it probably wouldn't work (and could fail in confusing ways). Now it errors out with a user-friendly message instead. Closes #1353 R=rnystrom@google.com Review URL: https://codereview.chromium.org//1427523005 .
Showing
- lib/src/global_packages.dart 16 additions, 6 deletionslib/src/global_packages.dart
- test/global/run/fails_if_sdk_constraint_is_unmet_test.dart 45 additions, 0 deletionstest/global/run/fails_if_sdk_constraint_is_unmet_test.dart
- test/global/run/recompiles_if_snapshot_is_out_of_date_test.dart 1 addition, 1 deletion...lobal/run/recompiles_if_snapshot_is_out_of_date_test.dart
Loading
Please register or sign in to comment