|
Make "--no-packages-dir" the default.
The actual change itself is tiny. However, almost all of pub's existing
integration tests validated the correct output by looking at the
contents of the generated "packages" dirs. :(
I fixed most of those to instead validate against the .packages file.
I didn't change the Git ones because the .packages files end up
containing paths that point to specific Git commits. Getting that
working felt like more work than it was worth right now.
When we fully remove support for packages directories, we'll want to
fix that.
Fix #1450.
R=nweiz@google.com
Committed: https://github.com/dart-lang/pub/commit/3dd04bd17ba269ccdd34502a253041dd96ded3be
Total comments: 8
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+290 lines, -268 lines) |
Patch |
 |
M |
lib/src/command/downgrade.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
lib/src/command/get.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
lib/src/command/upgrade.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
test/dependency_override_test.dart
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
test/descriptor.dart
|
View
|
1
2
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
test/descriptor/packages.dart
|
View
|
1
2
|
5 chunks |
+16 lines, -8 lines |
0 comments
|
Download
|
 |
M |
test/dev_dependency_test.dart
|
View
|
|
3 chunks |
+11 lines, -22 lines |
0 comments
|
Download
|
 |
M |
test/downgrade/doesnt_change_git_dependencies_test.dart
|
View
|
1
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/downgrade/unlock_dependers_test.dart
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/downgrade/unlock_if_necessary_test.dart
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/get/broken_symlink_test.dart
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/get/git/check_out_and_upgrade_test.dart
|
View
|
1
|
2 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/get/git/check_out_branch_test.dart
|
View
|
1
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
test/get/git/check_out_revision_test.dart
|
View
|
1
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
test/get/git/check_out_test.dart
|
View
|
1
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
test/get/git/check_out_transitive_test.dart
|
View
|
1
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
test/get/git/check_out_twice_test.dart
|
View
|
1
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
test/get/git/check_out_unfetched_revision_of_cached_repo_test.dart
|
View
|
1
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
test/get/git/check_out_with_trailing_slash_test.dart
|
View
|
1
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
test/get/git/different_repo_name_test.dart
|
View
|
1
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
test/get/git/doesnt_fetch_if_nothing_changes_test.dart
|
View
|
1
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/get/git/lock_version_test.dart
|
View
|
1
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/get/git/locked_revision_without_repo_test.dart
|
View
|
1
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/get/git/stay_locked_if_compatible_test.dart
|
View
|
1
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/get/git/unlock_if_incompatible_test.dart
|
View
|
1
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/get/hosted/avoid_network_requests_test.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
test/get/hosted/cached_pubspec_test.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
test/get/hosted/do_not_upgrade_on_removed_constraints_test.dart
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
test/get/hosted/does_no_network_requests_when_possible_test.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
test/get/hosted/get_test.dart
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/get/hosted/get_transitive_test.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
test/get/hosted/gets_a_package_with_busted_dev_dependencies_test.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
test/get/hosted/resolve_constraints_test.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
test/get/hosted/stay_locked_if_compatible_test.dart
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/get/hosted/stay_locked_if_new_is_satisfied_test.dart
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/get/hosted/stay_locked_test.dart
|
View
|
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
test/get/hosted/unlock_if_incompatible_test.dart
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/get/hosted/unlock_if_new_is_unsatisfied_test.dart
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/get/hosted/unlock_if_version_doesnt_exist_test.dart
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/get/package_name_test.dart
|
View
|
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
test/get/path/absolute_path_test.dart
|
View
|
|
1 chunk |
+5 lines, -18 lines |
0 comments
|
Download
|
 |
M |
test/get/path/absolute_symlink_test.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
test/get/path/relative_path_test.dart
|
View
|
|
2 chunks |
+8 lines, -14 lines |
0 comments
|
Download
|
 |
M |
test/get/path/relative_symlink_test.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
test/get/path/shared_dependency_symlink_test.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
test/get/path/shared_dependency_test.dart
|
View
|
|
3 chunks |
+15 lines, -15 lines |
0 comments
|
Download
|
 |
M |
test/get/relative_symlink_test.dart
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/get/switch_source_test.dart
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/hosted/offline_test.dart
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
test/hosted/remove_removed_dependency_test.dart
|
View
|
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
test/hosted/remove_removed_transitive_dependency_test.dart
|
View
|
|
2 chunks |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
test/implicit_barback_dependency_test.dart
|
View
|
|
4 chunks |
+20 lines, -8 lines |
0 comments
|
Download
|
 |
M |
test/implicit_dependency_test.dart
|
View
|
|
4 chunks |
+16 lines, -5 lines |
0 comments
|
Download
|
 |
M |
test/no_packages_dir_test.dart
|
View
|
|
3 chunks |
+3 lines, -65 lines |
0 comments
|
Download
|
 |
M |
test/pub_get_and_upgrade_test.dart
|
View
|
|
3 chunks |
+11 lines, -5 lines |
0 comments
|
Download
|
 |
M |
test/sdk_test.dart
|
View
|
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
test/test_pub.dart
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
test/unknown_source_test.dart
|
View
|
|
1 chunk |
+3 lines, -5 lines |
0 comments
|
Download
|
 |
M |
test/upgrade/git/do_not_upgrade_if_unneeded_test.dart
|
View
|
1
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/upgrade/git/upgrade_locked_test.dart
|
View
|
1
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/upgrade/git/upgrade_one_locked_test.dart
|
View
|
1
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/upgrade/git/upgrade_to_incompatible_pubspec_test.dart
|
View
|
1
|
2 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
M |
test/upgrade/git/upgrade_to_nonexistent_pubspec_test.dart
|
View
|
1
|
2 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
M |
test/upgrade/hosted/unlock_dependers_test.dart
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/upgrade/hosted/unlock_if_necessary_test.dart
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
test/upgrade/hosted/upgrade_removed_constraints_test.dart
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
Total messages: 8 (2 generated)
|