nweiz@google.com
89dca42b83
Properly parse library names on Windows in pub.
...
Review URL: https://codereview.chromium.org//11476030
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15859 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-07 19:46:10 +00:00
nweiz@google.com
97f425b7de
Add a validator that checks package names.
...
BUG=7045
Review URL: https://codereview.chromium.org//11444018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15857 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-07 19:30:51 +00:00
nweiz@google.com
e15d4788ce
Require a description field in pubspecs.
...
BUG=7045
Review URL: https://codereview.chromium.org//11466020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15856 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-07 19:27:03 +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
29318c2f5c
Revert "Stop working around issue 6984."
...
Review URL: https://codereview.chromium.org//11464015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15825 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-07 00:09:19 +00:00
nweiz@google.com
01dd8fcb4e
Stop working around issue 6984.
...
Review URL: https://codereview.chromium.org//11464006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15804 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-06 20:50:21 +00:00
rnystrom@google.com
39dc1b5323
Better error messages for dependency conflicts.
...
BUG=
Review URL: https://codereview.chromium.org//11445034
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15768 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-06 02:04:30 +00:00
nweiz@google.com
0e9b2ef0bd
Add validation infrastructure for "pub lish".
...
This also adds a simple validator.
BUG=7045
Review URL: https://codereview.chromium.org//11434118
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15765 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-06 00:25:41 +00:00
rnystrom@google.com
4691a52f63
Remove buildbot hack. Fixes dartbug.com/6847.
...
If this still breaks the buildbot, I'll revert this and fix it
some other way.
Review URL: https://codereview.chromium.org//11438033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15761 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-05 23:17:57 +00:00
nweiz@google.com
4ba4e92937
Handle OAuth2 AuthorizationExceptions in pub.
...
BUG=6950
Review URL: https://codereview.chromium.org//11416352
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15747 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-05 19:47:32 +00:00
nweiz@google.com
7137d14a03
Use HTTPS everywhere for "pub lish".
...
BUG=7115
Review URL: https://codereview.chromium.org//11414297
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15658 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-03 21:16:38 +00:00
rnystrom@google.com
2b3c4cd639
Make directory renaming more resilient on Windows.
...
BUG=
Review URL: https://codereview.chromium.org//11348332
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15608 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 22:39:45 +00:00
nweiz@google.com
7f9128e262
Restrict the set of files that will be pub lished.
...
This ensures that hidden directories, packages directories, and pubspec.lock
files aren't pub lished.
BUG=7001
Review URL: https://codereview.chromium.org//11308298
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15602 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 21:37:37 +00:00
rnystrom@google.com
0c0d8d9dc7
Get curl uploads working on Mac.
...
Review URL: https://codereview.chromium.org//11411273
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15592 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 18:21:41 +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
5c7323f35d
Keep around a copy of the http.Request that triggered each Response.
...
Review URL: https://codereview.chromium.org//11348309
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15555 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-30 00:09:18 +00:00
nweiz@google.com
f7f4e8c458
Give all async exceptions in pub some sort of stack trace.
...
Review URL: https://codereview.chromium.org//11421159
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15547 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 22:45:51 +00:00
rnystrom@google.com
816bcbff5e
Fix relativeToPub() to work in the SDK too.
...
Review URL: https://codereview.chromium.org//11419236
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15545 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 22:19:27 +00:00
rnystrom@google.com
e7382431ba
Get archive creation working on Windows.
...
Review URL: https://codereview.chromium.org//11348288
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15482 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-29 00:20:28 +00:00
nweiz@google.com
558ffd19bf
Work around issue 6984.
...
This ensures that before an HTTP response is closed, its corresponding
request is drained of input.
Review URL: https://codereview.chromium.org//11348285
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15476 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 22:43:10 +00:00
nweiz@google.com
a964e37605
Don't require users to copy-paste authorization codes when authorizing pub.
...
BUG=6951
Review URL: https://codereview.chromium.org//11348268
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15468 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 19:45:06 +00:00
ajohnsen@google.com
50a4a92d22
Hide aliases when printing 'pub --help'.
...
BUG=
Review URL: https://codereview.chromium.org//11413215
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15440 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 06:26:06 +00:00
nweiz@google.com
3b5ab2e81e
Add support for pub command aliases.
...
BUG=6949
Review URL: https://codereview.chromium.org//11416222
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15434 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-28 01:57:30 +00:00
nweiz@google.com
8161b23167
Fix or mark "pub lish" build failures.
...
Review URL: https://codereview.chromium.org//11411201
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15423 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 23:10:47 +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
ce5a461318
Update Version to latest language changes.
...
Review URL: https://codereview.chromium.org//11308236
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15421 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 22:38:03 +00:00
rnystrom@google.com
03320a2c66
Update YAML to latest language changes.
...
Review URL: https://codereview.chromium.org//11348257
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15420 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-27 22:37:19 +00:00
rnystrom@google.com
08b3c5ef6f
Avoid passing absolute path to 7zip.
...
Review URL: https://codereview.chromium.org//11417102
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15186 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-21 00:15:33 +00:00
nweiz@google.com
500db0fb88
Enable CurlClient tests on Windows by bundling curl.exe.
...
BUG=6777
Review URL: https://codereview.chromium.org//11414044
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15117 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-19 22:55:30 +00:00
nweiz@google.com
f4e557d746
Move CurlClient to Pub so that it can access resources.
...
This CL also enables tests for the client on Linux and OS X.
Review URL: https://codereview.chromium.org//11299028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15047 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-17 01:15:45 +00:00
ager@google.com
3fb41705e5
Rename File.readAsText to File.readAsString. There is no Text type in Dart
...
and the methods return Strings.
R=sgjesse@google.com
BUG=
Review URL: https://codereview.chromium.org//11412033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15011 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 13:10:15 +00:00
rnystrom@google.com
90325c70ca
Remove support for old package layouts.
...
Review URL: https://codereview.chromium.org//11280018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14990 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 00:23:58 +00:00
rnystrom@google.com
7cc5243981
Validate that the homepage is using an approved scheme.
...
Also cleaned up the pubspec tests a bit.
Review URL: https://codereview.chromium.org//11412017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14984 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-15 22:53:16 +00:00
rnystrom@google.com
26e59cf859
Fix error reporting on invalid command line args.
...
It would crash in a few cases if you didn't pass in a valid command
Also fixed a few unrelated warnings since a warning we learned to
ignore was masking the original issue. :(
Review URL: https://codereview.chromium.org//11363249
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14927 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 23:22:35 +00:00
floitsch@google.com
3e2f323981
Dynamic -> dynamic.
...
Review URL: https://codereview.chromium.org//11312237
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14898 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-14 15:33:25 +00:00
rnystrom@google.com
10c9d938ab
Place "packages" directories inside "tool".
...
Review URL: https://codereview.chromium.org//11362233
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14868 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 22:06:35 +00:00
ajohnsen@google.com
ab69873a42
Make RegExp constructor non-const.
...
Another take of https://codereview.chromium.org/11410033/ with status changes applied for co19 tests.
BUG=
Review URL: https://codereview.chromium.org//11369210
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14837 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 10:18:06 +00:00
ajohnsen@google.com
ec9fee9858
"Reverting 14829-14832"
...
BUG=
Review URL: https://codereview.chromium.org//11312203
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14833 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 07:28:13 +00:00
ajohnsen@google.com
8dc3edd7ce
Make RegExp's constructor non-const.
...
BUG=
Review URL: https://codereview.chromium.org//11410033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14829 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-13 06:48:43 +00:00
floitsch@google.com
8e6f238f86
a === b -> identical(a, b)
...
Replace === null with == null.
BUG=http://dartbug.com/6380
Review URL: https://codereview.chromium.org//11361190
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14794 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 17:19:58 +00:00
rnystrom@google.com
46adf67738
Allow an empty "dependencies" key in a pubspec.
...
Review URL: https://codereview.chromium.org//11361201
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14773 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-10 01:00:58 +00:00
rnystrom@google.com
982aac12e6
Handle URLs in 'git clone' argument.
...
Review URL: https://codereview.chromium.org//11410016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14763 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-09 22:54:19 +00:00
gram@google.com
58a016634c
Update utils to new library syntax.
...
This doesn't include adding partofs; that will have to be done later.
Review URL: https://codereview.chromium.org//11358145
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14693 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 17:42:40 +00:00
rnystrom@google.com
bf31c85b6f
Pass absolute path to git.
...
BUG=
Review URL: https://codereview.chromium.org//11364141
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14670 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-08 01:01:13 +00:00
rnystrom@google.com
9c0ace0797
Revert "Pass absolute path to git (redux)."
...
This reverts commit 9d638b8a9a48c7bae854685f9413d2c40a4911a1.
BUG=
Review URL: https://codereview.chromium.org//11361158
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14661 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 23:25:31 +00:00
rnystrom@google.com
930a3f1d7e
Pass absolute path to git (redux).
...
Review URL: https://codereview.chromium.org//11312133
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14659 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 23:20:18 +00:00
rnystrom@google.com
0caf122ecd
Revert "Pass absolute path to 'git clone'."
...
This reverts commit db4155692da9cda80ef558886eeea35e963fe1c6.
BUG=
Review URL: https://codereview.chromium.org//11360133
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14655 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 22:12:20 +00:00
rnystrom@google.com
8bea0cc487
Pass absolute path to 'git clone'.
...
Review URL: https://codereview.chromium.org//11390003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14654 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 22:03:53 +00:00
rnystrom@google.com
f50263acb9
Revert "Try setting the working directory explicitly."
...
This reverts commit 71ae3f9bcae7ff111a3f360384ec148f1c2079b2.
BUG=
Review URL: https://codereview.chromium.org//11383003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14652 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 21:00:43 +00:00