Move pub fully onto Dart 2 and off Dart 1. (#1933)
* Move pub fully onto Dart 2 and off Dart 1. - Have the tests run pub in Dart 2 mode. This unfortunately makes them much slower when running from source, but creating a pub snapshot helps. - Only generate Dart 2 snapshots when precompiling. - Remove tests around Dart 1 snapshots. - Remove test utility code for running pub in Dart 1 mode. - Change pub [global] run [un]checked mode tests to use assert(). The tests around outdated snapshots are failing because the old code for detecting a bad snapshot version error does not seem to work in the Dart 2 VM. I have an email thread going for that, but I wanted to send this out in the meantime. * Fix pub SDK snapshot extension.
Showing
- .travis.yml 0 additions, 1 deletion.travis.yml
- lib/src/command/run.dart 1 addition, 1 deletionlib/src/command/run.dart
- lib/src/dart.dart 5 additions, 25 deletionslib/src/dart.dart
- lib/src/entrypoint.dart 3 additions, 5 deletionslib/src/entrypoint.dart
- lib/src/executable.dart 1 addition, 5 deletionslib/src/executable.dart
- lib/src/global_packages.dart 2 additions, 2 deletionslib/src/global_packages.dart
- lib/src/utils.dart 0 additions, 6 deletionslib/src/utils.dart
- test/asset/out-of-date.snapshot 0 additions, 0 deletionstest/asset/out-of-date.snapshot
- test/asset/out-of-date.snapshot.dart2 0 additions, 0 deletionstest/asset/out-of-date.snapshot.dart2
- test/descriptor.dart 2 additions, 3 deletionstest/descriptor.dart
- test/global/activate/snapshots_git_executables_test.dart 3 additions, 3 deletionstest/global/activate/snapshots_git_executables_test.dart
- test/global/activate/snapshots_hosted_executables_test.dart 3 additions, 3 deletionstest/global/activate/snapshots_hosted_executables_test.dart
- test/global/binstubs/outdated_snapshot_test.dart 2 additions, 2 deletionstest/global/binstubs/outdated_snapshot_test.dart
- test/global/dart2_test.dart 0 additions, 89 deletionstest/global/dart2_test.dart
- test/global/run/runs_script_in_checked_mode_test.dart 2 additions, 2 deletionstest/global/run/runs_script_in_checked_mode_test.dart
- test/global/run/runs_script_in_unchecked_mode_test.dart 1 addition, 1 deletiontest/global/run/runs_script_in_unchecked_mode_test.dart
- test/run/runs_the_script_in_checked_mode_test.dart 2 additions, 2 deletionstest/run/runs_the_script_in_checked_mode_test.dart
- test/run/runs_the_script_in_unchecked_mode_test.dart 1 addition, 1 deletiontest/run/runs_the_script_in_unchecked_mode_test.dart
- test/snapshot_test.dart 27 additions, 140 deletionstest/snapshot_test.dart
- test/test_pub.dart 14 additions, 27 deletionstest/test_pub.dart
Loading
Please register or sign in to comment