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

Issue 1282533003: Don't implicitly run "pub get". (Closed)

Created:
5 years, 4 months ago by nweiz
Modified:
5 years, 4 months ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/pub.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Don't implicitly run "pub get". Previously, several commands automatically ran "pub get" implicitly before doing their work. We've determined that this behavior is confusing, and for "pub run" in particular, makes the executables seem much slower than they actually are. This also allows us to make access to the entrypoint's package graph synchronous. R=rnystrom@google.com Committed: https://github.com/dart-lang/pub/commit/7ae772d834fa08e1f7563d60a2aaebd9e52f28b6

Patch Set 1 #

Total comments: 10

Patch Set 2 : Code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+541 lines, -524 lines) Patch
M lib/src/barback/asset_environment.dart View 1 chunk +1 line, -2 lines 0 comments Download
M lib/src/command/deps.dart View 8 chunks +19 lines, -22 lines 0 comments Download
M lib/src/command/list_package_dirs.dart View 2 chunks +2 lines, -1 line 0 comments Download
M lib/src/dart.dart View 2 chunks +4 lines, -2 lines 0 comments Download
M lib/src/entrypoint.dart View 1 16 chunks +100 lines, -157 lines 0 comments Download
M lib/src/executable.dart View 2 chunks +3 lines, -5 lines 0 comments Download
M lib/src/global_packages.dart View 5 chunks +12 lines, -12 lines 0 comments Download
M lib/src/package_graph.dart View 2 chunks +22 lines, -2 lines 0 comments Download
M lib/src/source/path.dart View 1 chunk +1 line, -1 line 0 comments Download
M test/barback/all_includes_all_default_directories_test.dart View 2 chunks +3 lines, -1 line 0 comments Download
M test/barback/directory_args_test.dart View 2 chunks +3 lines, -1 line 0 comments Download
M test/barback/subdirectories_test.dart View 2 chunks +3 lines, -1 line 0 comments Download
M test/build/can_specify_output_directory_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M test/build/cleans_entire_build_directory_test.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M test/build/copies_non_dart_files_to_build_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M test/build/handles_long_paths_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M test/build/includes_assets_from_dependencies_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M test/build/includes_dart_files_from_dependencies_in_debug_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M test/build/includes_dart_files_in_debug_mode_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M test/build/outputs_results_to_json_test.dart View 1 chunk +35 lines, -35 lines 0 comments Download
M test/build/preserves_htaccess_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M test/dart2js/allows_import_in_dart_code_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/dart2js/compiles_entrypoints_in_root_package_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M test/dart2js/converts_isolate_entrypoint_in_web_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/dart2js/does_not_compile_if_disabled_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/dart2js/does_not_compile_until_its_output_is_requested_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/dart2js/does_not_support_invalid_command_line_options_type_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/dart2js/does_not_support_invalid_environment_type_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/dart2js/does_not_support_invalid_option_test.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M test/dart2js/doesnt_support_invalid_type_for_boolean_option_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/dart2js/environment_constant_test.dart View 3 chunks +5 lines, -2 lines 0 comments Download
M test/dart2js/ignores_entrypoint_in_dependency_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/dart2js/ignores_entrypoints_in_lib_test.dart View 2 chunks +3 lines, -1 line 0 comments Download
M test/dart2js/ignores_non_entrypoint_dart_files_test.dart View 2 chunks +3 lines, -1 line 0 comments Download
M test/dart2js/includes_source_maps_if_sourceMaps_true_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M test/dart2js/includes_source_maps_in_debug_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M test/dart2js/minifies_in_release_mode_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/dart2js/minify_configuration_overrides_mode_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/dart2js/omits_source_map_if_sourceMaps_false_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M test/dart2js/omits_source_map_in_release_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M test/dart2js/output_can_be_consumed_by_successive_phases.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/dart2js/outputs_deferred_libraries_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M test/dart2js/passes_along_environment_constants_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/dart2js/source_maps_include_core_libs_in_subdirectory_test.dart View 1 chunk +3 lines, -1 line 0 comments Download
M test/dart2js/source_maps_include_core_libs_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M test/dart2js/supports_valid_options_test.dart View 1 chunk +3 lines, -1 line 0 comments Download
M test/dart2js/unminified_in_nonrelease_mode_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/lock_file_test.dart View 1 chunk +1 line, -1 line 0 comments Download
A test/must_pub_get_test.dart View 1 chunk +99 lines, -0 lines 0 comments Download
M test/run/allows_dart_extension_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/run/app_can_read_from_stdin_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/run/forwards_signal_posix_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/run/ignores_explicit_dart2js_transformer_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/run/includes_parent_directories_of_entrypoint_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M test/run/loads_package_imports_in_a_dependency_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/run/nonexistent_dependency_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M test/run/nonexistent_script_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M test/run/passes_along_arguments_test.dart View 1 chunk +3 lines, -2 lines 0 comments Download
M test/run/resource_test.dart View 2 chunks +4 lines, -2 lines 0 comments Download
M test/run/runs_app_in_directory_in_entrypoint_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/run/runs_app_in_entrypoint_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/run/runs_named_app_in_dependency_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/run/runs_named_app_in_dev_dependency_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/run/runs_shorthand_app_in_dependency_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/run/runs_the_script_in_checked_mode_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M test/run/runs_the_script_in_unchecked_mode_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M test/serve/404_page_test.dart View 2 chunks +4 lines, -2 lines 0 comments Download
D test/serve/does_not_get_first_if_a_dependency_is_removed_test.dart View 1 chunk +0 lines, -35 lines 0 comments Download
D test/serve/does_not_get_first_if_git_url_did_not_change_test.dart View 1 chunk +0 lines, -27 lines 0 comments Download
D test/serve/does_not_get_first_if_locked_matches_override_test.dart View 1 chunk +0 lines, -40 lines 0 comments Download
D test/serve/does_not_get_first_if_locked_version_matches_test.dart View 1 chunk +0 lines, -44 lines 0 comments Download
M test/serve/does_not_serve_dart_in_release_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/does_not_serve_hidden_assets_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/does_not_watch_compiled_js_files_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/gets_first_if_dependency_added_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/gets_first_if_dependency_is_not_installed_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/gets_first_if_dependency_version_changed_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/gets_first_if_dev_dependency_changed_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/gets_first_if_git_ref_changed_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/gets_first_if_git_url_changed_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/gets_first_if_no_lockfile_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/gets_first_if_path_dependency_changed_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/gets_first_if_source_changed_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/gets_first_if_transitive_dependency_is_not_installed_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/invalid_method_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/missing_asset_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/missing_file_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/native_watch_added_file_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/native_watch_modified_file_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/native_watch_removed_file_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/serve_from_app_lib_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/serve_from_app_web_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/serve_from_dependency_lib_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/serves_file_with_space_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/serves_index_html_for_directories_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/serves_web_and_test_dirs_by_default_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/supports_cross_origin_header_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/unknown_dependency_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/uses_appropriate_mime_types_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/utils.dart View 2 chunks +1 line, -11 lines 0 comments Download
M test/serve/watch_added_file_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/watch_modified_file_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/watch_removed_file_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/web_socket/exit_on_close_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/web_socket/path_to_urls_errors_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/web_socket/path_to_urls_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/web_socket/path_to_urls_with_line_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/web_socket/serve_directory_already_served_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/web_socket/serve_directory_and_immediately_request_asset_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/web_socket/serve_directory_and_immediately_serve_again_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/web_socket/serve_directory_and_immediately_unserve_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/web_socket/serve_directory_arg_errors_test.dart View 3 chunks +4 lines, -3 lines 0 comments Download
M test/serve/web_socket/serve_directory_overlapping_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/web_socket/serve_directory_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/web_socket/unserve_directory_arg_errors_test.dart View 3 chunks +4 lines, -3 lines 0 comments Download
M test/serve/web_socket/unserve_directory_not_served_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/web_socket/unserve_directory_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/serve/web_socket/url_to_asset_id_errors_test.dart View 2 chunks +3 lines, -2 lines 0 comments Download
M test/serve/web_socket/url_to_asset_id_test.dart View 6 chunks +8 lines, -6 lines 0 comments Download
M test/serve/web_socket/url_to_asset_id_with_line_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M test/test_pub.dart View 8 chunks +21 lines, -26 lines 0 comments Download
M test/transformer/cache_test.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M test/transformer/fails_to_load_a_non_existent_transform_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M test/transformer/fails_to_load_a_transform_from_a_deps_dev_dependency_test.dart View 1 chunk +1 line, -0 lines 0 comments Download
M test/transformer/fails_to_load_a_transform_from_a_non_dependency_test.dart View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
nweiz
5 years, 4 months ago (2015-08-10 20:14:02 UTC) #1
Bob Nystrom
lgtm https://codereview.chromium.org/1282533003/diff/1/lib/src/entrypoint.dart File lib/src/entrypoint.dart (right): https://codereview.chromium.org/1282533003/diff/1/lib/src/entrypoint.dart#newcode54 lib/src/entrypoint.dart:54: /// Whether this entrypoing is in memory only, ...
5 years, 4 months ago (2015-08-10 21:54:29 UTC) #2
nweiz
Code review changes
5 years, 4 months ago (2015-08-10 22:32:33 UTC) #3
nweiz
https://codereview.chromium.org/1282533003/diff/1/lib/src/entrypoint.dart File lib/src/entrypoint.dart (right): https://codereview.chromium.org/1282533003/diff/1/lib/src/entrypoint.dart#newcode54 lib/src/entrypoint.dart:54: /// Whether this entrypoing is in memory only, as ...
5 years, 4 months ago (2015-08-10 22:32:47 UTC) #4
nweiz
5 years, 4 months ago (2015-08-10 22:33:02 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
7ae772d834fa08e1f7563d60a2aaebd9e52f28b6 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698