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

Issue 1427523005: "pub global run" errors out for a mismatched SDK. (Closed)

Created:
5 years, 1 month ago by nweiz
Modified:
5 years, 1 month 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

"pub global run" errors out for a mismatched SDK. Previously, "pub global run" would happily try to run an executable with an SDK constraint that doesn't match the current SDK, even though it probably wouldn't work (and could fail in confusing ways). Now it errors out with a user-friendly message instead. Closes #1353 R=rnystrom@google.com Committed: https://github.com/dart-lang/pub/commit/0636b17d13270f2ee0b7e05c014a14a586cce870

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -73 lines) Patch
M lib/src/global_packages.dart View 1 chunk +16 lines, -6 lines 0 comments Download
A + test/global/run/fails_if_sdk_constraint_is_unmet_test.dart View 2 chunks +15 lines, -18 lines 0 comments Download
D test/global/run/recompiles_if_sdk_is_out_of_date_test.dart View 1 chunk +0 lines, -48 lines 0 comments Download
A + test/global/run/recompiles_if_snapshot_is_out_of_date_test.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
nweiz
5 years, 1 month ago (2015-10-28 21:27:03 UTC) #1
Bob Nystrom
lgtm
5 years, 1 month ago (2015-10-28 21:41:34 UTC) #2
nweiz
5 years, 1 month ago (2015-10-28 21:49:48 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
0636b17d13270f2ee0b7e05c014a14a586cce870 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698