rnystrom@google.com
b12e27a4d2
Get rid of join() and encapsulate File and Directory in io.dart.
...
Review URL: https://codereview.chromium.org//12253054
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18551 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 01:13:07 +00:00
rnystrom@google.com
9f21b5324b
Make createTempDir() synchronous.
...
Review URL: https://codereview.chromium.org//12225085
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18231 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-07 20:46:45 +00:00
rnystrom@google.com
4a9cc0f619
Validate packages against their SDK constraints.
...
After running pub install or update, it will look at all of the
selected packages and see if their SDK constraints match the
current SDK. If not, it will show a (hopefully) helpful error
message.
BUG=dartbug.com/6285
Review URL: https://codereview.chromium.org//12092080
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18014 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-01 23:45:26 +00:00
nweiz@google.com
6565bb80ef
Stop using cURL in Pub.
...
BUG=7395
Review URL: https://codereview.chromium.org//12090104
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18007 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-01 22:35:33 +00:00
nweiz@google.com
18d274df07
Use the dart:async Stream API thoroughly in Pub.
...
This was originally submitted as r17822, and rolled back in r17867. There are no
changes, but in preparation for the dart:io Stream changes we're applying this
with the intent to mark Windows tests as failing.
BUG=7807
Review URL: https://codereview.chromium.org//12086110
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17996 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-01 19:42:09 +00:00
lrn@google.com
9b23dff467
Reapply "Rename mappedBy to map."
...
This reverts commit r17907.
TBR.
Review URL: https://codereview.chromium.org//12090093
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17918 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 15:12:56 +00:00
floitsch@google.com
b1a118d5ce
Revert "Rename mappedBy to map."
...
This reverts commit 17899.
Review URL: https://codereview.chromium.org//12087103
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17907 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 14:02:27 +00:00
lrn@google.com
0dc2f4b1ba
Rename mappedBy to map.
...
Retain a deprecated mappedBy for now.
Change return type of mappedBy, skip and take on List to Iterable.
BUG= http://dartbug.com/8063
BUG= http://dartbug.com/8064
BUG= http://dartbug.com/6739
BUG= http://dartbug.com/7982
Review URL: https://codereview.chromium.org//12086062
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17899 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 12:37:13 +00:00
nweiz@google.com
8be520740e
Roll back Pub stream changes.
...
These changes are still breaking the Windows bots, so I'm rolling them back
until we figure out what's going on.
TBR
Review URL: https://codereview.chromium.org//12095050
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17867 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-30 19:26:03 +00:00
nweiz@google.com
d56994eb18
Use the dart:async Stream API thoroughly in Pub.
...
Review URL: https://codereview.chromium.org//12021008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17821 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-30 01:06:39 +00:00
floitsch@google.com
ed938af868
Rename new Uri.fromString to Uri.parse.
...
Review URL: https://codereview.chromium.org//12052038
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17562 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 13:26:18 +00:00
nweiz@google.com
30d2e78687
Stop working around issue 7781 in Pub.
...
Review URL: https://codereview.chromium.org//11881032
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17038 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 00:15:23 +00:00
lrn@google.com
4868ee2110
Remove Futures class, move methods to Future.
...
Optimize Future.forEach, Future.delay.
Review URL: https://codereview.chromium.org//11865005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16954 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 09:46:45 +00:00
nweiz@google.com
fcff2fb2d9
Fix ALL the pub tests.
...
Review URL: https://codereview.chromium.org//11830017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16888 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 21:37:40 +00:00
rnystrom@google.com
8c2cbb8c53
Unwrap AsyncErrors to find real error.
...
Review URL: https://codereview.chromium.org//11821006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16825 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 23:07:35 +00:00
rnystrom@google.com
021b6438c5
Commit Martin's patch for pub + lib_v2.
...
Pub is still all kinds of broken with this, but it's slightly
less broken. Some tests pass, and at least the code *parses*
after this.
Review URL: https://codereview.chromium.org//11785028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16763 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 23:11:55 +00:00
floitsch@google.com
4a7dfd2da3
Big merge from experimental to bleeding edge.
...
Review URL: https://codereview.chromium.org//11783009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16687 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 11:23:16 +00:00
rnystrom@google.com
12b11b4cc0
Convert /** comments to /// in pub.
...
Previously, it was a mix of both styles. Now it's consistent. :)
Review URL: https://codereview.chromium.org//11638010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16354 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-20 02:04:28 +00:00
nweiz@google.com
e2036dea9c
Add a pub command for managing uploaders for packages.
...
BUG=7363
Review URL: https://codereview.chromium.org//11569046
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16230 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-17 21:47:37 +00:00
rnystrom@google.com
e5567d556b
Add some relatively innocuous logging.
...
Review URL: https://codereview.chromium.org//11464032
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15876 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-08 02:57:00 +00:00
rnystrom@google.com
e3bc775e68
Revert "Add logging system to pub and sprinkle some logging in."
...
This reverts commit 60468a1a0854389bb3f460cf2368f22013f1af31.
BUG=
Review URL: https://codereview.chromium.org//11472016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15830 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-07 00:48:12 +00:00
rnystrom@google.com
578c415134
Add logging system to pub and sprinkle some logging in.
...
We'll have to tune which things we log over time, but this covers
most IO operations which is where almost all of our problems come
from.
This patch also means that going forward you should no longer call
print() or printError() (which is gone) directly. Instead:
print() -> log.message()
printError() -> log.error()
That ensures all messages will correctly get added to the log's
transcript.
Review URL: https://codereview.chromium.org//11437019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15827 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-07 00:29:23 +00:00
nweiz@google.com
6a6c381b91
Use pkg/http pervasively in pub.
...
Review URL: https://codereview.chromium.org//11280246
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15559 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 01:15:23 +00:00
nweiz@google.com
e67b17723c
Add an initial "pub lish" command.
...
BUG=6177
Review URL: https://codereview.chromium.org//11308212
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15422 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 22:48:59 +00:00
rnystrom@google.com
5704507534
Show better error messages in network failures.
...
We had decent messages for a couple of failure modes. This tries
to catch some more.
Review URL: https://codereview.chromium.org//11369066
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14543 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 20:42:39 +00:00
ager@google.com
57d5cd2278
Remove second sleep in pub and enable pub tests on Windows.
...
After the inherit fix I cannot reproduce the other 7zip
problem either so I'm removing the sleep call. All tests
pass on my machine.
Bob, could you test this with all of your migthty pub
power and see if you can make it break?
R=sgjesse@google.com ,rnystrom@google.com
BUG=dartbug.com/5910
Review URL: https://codereview.chromium.org//11225056
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13964 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-23 13:56:54 +00:00
regis@google.com
adb534674c
Change core lib, dart2js, and more for new optional parameters syntax and semantics (new semantics is not enforced yet).
...
Review URL: https://codereview.chromium.org//11090016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13684 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-16 16:03:47 +00:00
johnniwinther@google.com
19d27b1fe0
Pub fix for Windows
...
BUG=5859
Review URL: https://codereview.chromium.org//11170003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13676 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-16 08:09:51 +00:00
ricow@google.com
f7b22d4cbb
Download packages to temp dir inside system cache.
...
This fixes an issue where the rename will fail if your system temp directory is
on a different volume from your user directory (and thus your pub cache).
Review URL: https://codereview.chromium.org//11151035
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13674 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-16 06:18:49 +00:00
rnystrom@google.com
e6fbcf3426
Add prefix.
...
Review URL: https://codereview.chromium.org//11142028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13671 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-15 22:52:38 +00:00
rnystrom@google.com
ba0802348c
Sleep before moving directory on Windows.
...
Gives 7zip more time to finish extracting before we access the
directory.
BUG=
Review URL: https://codereview.chromium.org//11151030
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13670 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-15 22:43:15 +00:00
rnystrom@google.com
1bb574612e
Download to a temp dir and rename on success.
...
This prevents ghost packages ending up in your pub cache if a
download fails. Also added some more output during installation so
you can see what's happening.
BUG=
Review URL: https://codereview.chromium.org//11151026
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13666 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-15 20:59:56 +00:00
rnystrom@google.com
182ae3e26c
Update pub to use new import syntax.
...
Review URL: https://codereview.chromium.org//11093012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13391 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 01:25:43 +00:00
rnystrom@google.com
def86f3256
Convert raw strings in pub (and apidoc) to new syntax.
...
Review URL: https://codereview.chromium.org//10981031
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12890 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-26 01:23:18 +00:00
rnystrom@google.com
e8fe8a636c
Beat on hosted repo support on Windows a bit more.
...
The hosted tests are passing locally, and I've done pub install
from pub.dartlang.org successfully, but there are still some
intermittent errors, so I'm not enabling the hosted tests on the
bots just yet.
Review URL: https://codereview.chromium.org//10970025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12677 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-21 01:14:49 +00:00
nweiz@google.com
d9e0a8f277
Use more semantic exit codes so we can detect HTTP errors.
...
Review URL: https://codereview.chromium.org//10944035
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12586 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 18:35:27 +00:00
nweiz@google.com
bb468499d4
Don't extract the name of a package from its description.
...
Instead, the pubspec is considered to be the canonical name. This has the side
effect of requiring that all dependencies have a pubspec with a name field.
BUG=5205
Review URL: https://chromiumcodereview.appspot.com//10938003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12517 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 22:09:37 +00:00
nweiz@google.com
db5a92899e
Add a 30s timeout for all HTTP requests in Pub.
...
Review URL: https://chromiumcodereview.appspot.com//10928041
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12151 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-10 23:29:12 +00:00
rnystrom@google.com
603f1e3368
Show nicer errors on some server failures.
...
Review URL: https://chromiumcodereview.appspot.com//10917053
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11852 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 00:02:10 +00:00
rnystrom@google.com
ed8794090e
Rename "repo" source to "hosted".
...
Review URL: https://chromiumcodereview.appspot.com//10916034
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11671 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 23:44:51 +00:00