Skip to content
Snippets Groups Projects
Unverified Commit 2258022c authored by Bob Nystrom's avatar Bob Nystrom Committed by GitHub
Browse files

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.
parent c84ffa02
No related branches found
No related tags found
No related merge requests found
Showing
with 69 additions and 318 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment