Improve the heuristics for "pub get" is needed.
Instead of relying only on modification times, this does a more complex compatibility check if the modification times of the pubspec, lockfile, and .packages file aren't ordered properly. If they are up-to-date, it updates the modification times accordingly. This also fixes a case where "pub run" wasn't properly checking that the dependencies were up-to-date. Closes #1322 R=rnystrom@google.com Review URL: https://codereview.chromium.org//1307853004 .
Showing
- lib/src/command/deps.dart 17 additions, 6 deletionslib/src/command/deps.dart
- lib/src/entrypoint.dart 134 additions, 26 deletionslib/src/entrypoint.dart
- lib/src/executable.dart 4 additions, 0 deletionslib/src/executable.dart
- lib/src/io.dart 9 additions, 0 deletionslib/src/io.dart
- test/must_pub_get_test.dart 318 additions, 35 deletionstest/must_pub_get_test.dart
- test/test_pub.dart 27 additions, 8 deletionstest/test_pub.dart
Loading
Please register or sign in to comment