Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1004)

Issue 2377063002: Make "--no-packages-dir" the default. (Closed)

Created:
4 years, 2 months ago by Bob Nystrom
Modified:
4 years, 2 months ago
Reviewers:
nweiz
CC:
reviews_dartlang.org, kevmoo
Target Ref:
refs/heads/master
Visibility:
Public.

Description

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

Patch Set 1 #

Total comments: 8

Patch Set 2 : Revise. #

Total comments: 2

Patch Set 3 : Revise again. #

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

Messages

Total messages: 8 (2 generated)
Bob Nystrom
4 years, 2 months ago (2016-09-28 18:05:48 UTC) #2
nweiz
https://codereview.chromium.org/2377063002/diff/1/test/descriptor.dart File test/descriptor.dart (right): https://codereview.chromium.org/2377063002/diff/1/test/descriptor.dart#newcode210 test/descriptor.dart:210: var copied = new Map<String, String>.from(dependencies); Are these type ...
4 years, 2 months ago (2016-09-28 20:01:21 UTC) #3
Bob Nystrom
Added all the TODOs. https://codereview.chromium.org/2377063002/diff/1/test/descriptor.dart File test/descriptor.dart (right): https://codereview.chromium.org/2377063002/diff/1/test/descriptor.dart#newcode210 test/descriptor.dart:210: var copied = new Map<String, ...
4 years, 2 months ago (2016-09-29 00:21:26 UTC) #4
nweiz
lgtm https://codereview.chromium.org/2377063002/diff/1/test/descriptor.dart File test/descriptor.dart (right): https://codereview.chromium.org/2377063002/diff/1/test/descriptor.dart#newcode210 test/descriptor.dart:210: var copied = new Map<String, String>.from(dependencies); On 2016/09/29 ...
4 years, 2 months ago (2016-09-29 00:32:41 UTC) #5
Bob Nystrom
Thanks! https://codereview.chromium.org/2377063002/diff/1/test/descriptor.dart File test/descriptor.dart (right): https://codereview.chromium.org/2377063002/diff/1/test/descriptor.dart#newcode210 test/descriptor.dart:210: var copied = new Map<String, String>.from(dependencies); On 2016/09/29 ...
4 years, 2 months ago (2016-09-29 00:56:41 UTC) #6
Bob Nystrom
4 years, 2 months ago (2016-09-29 00:57:56 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
3dd04bd17ba269ccdd34502a253041dd96ded3be (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698