lrn@google.com
a1faa6f135
Change IllegalArgumentException to ArgumentError.
...
Review URL: https://codereview.chromium.org//10989013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12841 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-25 12:27:52 +00:00
nweiz@google.com
85b348a987
Allow circular dependencies on the root source in Pub.
...
BUG=5300
Review URL: https://codereview.chromium.org//10949026
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12817 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 22:55:42 +00:00
rnystrom@google.com
88e331a795
Support dependencies in SDK packages.
...
Review URL: https://codereview.chromium.org//10947050
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12816 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-24 22:49:05 +00:00
rnystrom@google.com
4610c4d6ed
Remove "pub list" command.
...
Review URL: https://codereview.chromium.org//10941049
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12607 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 21:35:55 +00:00
nweiz@google.com
5096506fe0
Add packages/ directories for dart files in web/.
...
BUG=5196
Review URL: https://codereview.chromium.org//10951021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12587 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 18:54:01 +00:00
nweiz@google.com
9f569161f7
Delete the packages/ directory before installing new packages to it.
...
BUG=5123
Review URL: https://codereview.chromium.org//10952015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12585 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 18:16:58 +00:00
rnystrom@google.com
9c970fa558
First pass at getting git and tar.gz working on Windows.
...
Review URL: https://codereview.chromium.org//10937019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12573 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 16:32:24 +00:00
ager@google.com
e2d772de96
Fix use of Process API in pub.
...
This is subtle, but you have to wait for the process to be started
before you can write to its stdin stream. You can register event
handlers on the output streams if you want but you have to wait with
writing to stdin.
R=sgjesse@google.com ,nweiz@google.com ,rnystrom@google.com
BUG=dartbug.com/5065
Review URL: https://codereview.chromium.org//10947031
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12559 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 13:34:24 +00:00
nweiz@google.com
b162605f23
Add tests for updating a git repo to a bad/different pubspec.
...
BUG=5241
Review URL: https://codereview.chromium.org//10937018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12520 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 22:30:43 +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
a46ca5f049
Re-mark pub_(install|update)_hosted_test as flaky.
...
BUG=5065
Review URL: https://codereview.chromium.org//10941021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12516 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 22:09:01 +00:00
nweiz@google.com
665f07f786
Mark pub_(install|update)_hosted_test as unflaky.
...
Issue 4974 purports to have fixed the error that was causing this flakiness. If
these tests continue to be flaky, issue 4974 should be re-opened.
BUG=5065
Review URL: https://chromiumcodereview.appspot.com//10950013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12514 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-18 21:41:45 +00:00
efortuna@google.com
9163dfe93c
revert 1204. Will investigate when I get a chance.
...
TBR=rnystrom
Review URL: https://codereview.chromium.org//10928216
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12413 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-15 01:21:41 +00:00
rnystrom@google.com
383488ec4f
Update unittest to new package layout.
...
Review URL: https://codereview.chromium.org//10917275
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12404 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 21:12:17 +00:00
rnystrom@google.com
659a57df3e
Revert "Make unittest follow the new package layout."
...
This reverts commit 38f7d16f373832a7bf889192af7845cb602aec01.
Review URL: https://codereview.chromium.org//10911318
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12400 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 19:43:10 +00:00
rnystrom@google.com
2ba81033a6
Make unittest follow the new package layout.
...
Review URL: https://codereview.chromium.org//10918240
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12396 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-14 18:22:24 +00:00
bak@google.com
26a215b25a
Changed interfaces to abstract classes in utils.
...
Review URL: https://chromiumcodereview.appspot.com//10915231
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12263 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-12 13:30:26 +00:00
iposva@google.com
bcb6bcc85a
- Simplify pub.status file.
...
- Mark pub_update_hosted_test as flaky.
Review URL: https://chromiumcodereview.appspot.com//10933041
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12246 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-12 08:58:41 +00:00
rnystrom@google.com
3317817025
Support both new and old style package layouts.
...
Update the tests to all use the new layout.
Review URL: https://chromiumcodereview.appspot.com//10916190
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12224 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 21:55:47 +00:00
nweiz@google.com
e24a805cac
Look for git.cmd on Windows.
...
BUG=4947
Review URL: https://chromiumcodereview.appspot.com//10905202
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12222 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 21:17:41 +00:00
ahe@google.com
3436e0ce12
Mark pub test as flaky
...
Review URL: https://chromiumcodereview.appspot.com//10918165
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12162 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-11 07:19:01 +00:00
antonm@google.com
123a2620f7
Do not rename assert syntax.
...
TBR=lrn@google.com ,smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10914150
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12048 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 17:11:14 +00:00
ahe@google.com
c8ca545f23
Update status file for dart2dart.
...
Review URL: https://chromiumcodereview.appspot.com//10908147
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12047 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 17:01:24 +00:00
ngeoffray@google.com
94f1c2ed10
Change our 'is int' check to use Math.floor instead of a smi check.
...
Review URL: https://chromiumcodereview.appspot.com//10912147
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12018 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 12:05:34 +00:00
kasperl@google.com
9beb871852
Get rid of a lot of () for getters.
...
R=bak@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10919146
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12017 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-07 11:50:07 +00:00
ngeoffray@google.com
b5fe256172
Improvements for checked mode: check when intializing fields, and when assigning to fields.
...
Review URL: https://chromiumcodereview.appspot.com//10910092
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11962 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 16:03:25 +00:00
ngeoffray@google.com
fce3e2ec01
Fix checked mode on browser.
...
Review URL: https://chromiumcodereview.appspot.com//10912109
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11933 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-06 10:48:22 +00:00
ahe@google.com
ccc5a66fbc
One more problem with checked mode in browsers.
...
Review URL: https://chromiumcodereview.appspot.com//10912104
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11892 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 18:43:56 +00:00
nweiz@google.com
e36237835a
Use a bare git repository for the repo cache.
...
This also allows remote branch names to be used in the `ref` field for Git
dependencies.
BUG=4892
Review URL: https://chromiumcodereview.appspot.com//10913077
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11856 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 01:35:27 +00:00
nweiz@google.com
dab90c79b4
Emit a non-zero exit code when Pub fails.
...
BUG=4922
Review URL: https://chromiumcodereview.appspot.com//10911085
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11855 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 01:16:21 +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
361e992008
Hide self-referential symlinks behind a flag in pub.
...
Review URL: https://chromiumcodereview.appspot.com//10907036
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11725 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-31 21:54:49 +00:00
iposva@google.com
0dd77bf634
- Change "static final" to "static const" in the
...
pkg/, language/, utils/ and lib/core/ directories.
Review URL: https://chromiumcodereview.appspot.com//10919024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11703 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-31 17:47:17 +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
nweiz@google.com
1e3faaeda1
Add a friendly error message for using a tab as indentation.
...
BUG=4813
Review URL: https://chromiumcodereview.appspot.com//10886055
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11644 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 19:19:15 +00:00
nweiz@google.com
ac0927b2eb
Improve the error message for pub install without a name key in the pubspec.
...
BUG=4806
Review URL: https://chromiumcodereview.appspot.com//10896051
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11643 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 18:57:33 +00:00
nweiz@google.com
cb45c460f7
Create packages directories in test/ and bin/ as well as at the top level.
...
This is necessary to run Dart files in these directories.
Review URL: https://chromiumcodereview.appspot.com//10900015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11549 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 20:57:03 +00:00
kasperl@google.com
72e668595d
Use new try-catch syntax in runtime/, tools/, and utils/.
...
R=ngeoffray@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10887023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11514 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 11:58:58 +00:00
nweiz@google.com
89b1f5ec12
Support removing dead packages with pub install.
...
Review URL: https://chromiumcodereview.appspot.com//10867070
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11356 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-25 00:18:48 +00:00
nweiz@google.com
4b76d74d5d
Properly handle Git URLs with trailing slashes.
...
BUG=3493
Review URL: https://chromiumcodereview.appspot.com//10875056
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11343 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 21:11:28 +00:00
nweiz@google.com
562860c6c3
Skip the new pub tests on platforms where they don't belong.
...
Review URL: https://chromiumcodereview.appspot.com//10879071
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11338 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 19:55:02 +00:00
nweiz@google.com
e74b871e92
Support self-referential package: imports with Pub.
...
Review URL: https://chromiumcodereview.appspot.com//10874051
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11334 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 18:48:00 +00:00
rnystrom@google.com
0ca2c3fee4
Add new pub test suites to status file.
...
Review URL: https://chromiumcodereview.appspot.com//10883019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11284 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 01:48:53 +00:00
rnystrom@google.com
172e5cfae4
Split pub tests into separate suites.
...
Review URL: https://chromiumcodereview.appspot.com//10876058
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11283 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 01:42:51 +00:00
nweiz@google.com
20a9094704
Use ephemeral ports for serving stuff during the pub tests.
...
BUG=4531
Review URL: https://chromiumcodereview.appspot.com//10874039
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11274 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 23:18:10 +00:00
nweiz@google.com
523bb86491
Add a number of convenience methods to test_pub.
...
This changelist has two goals. The first is to simply clean up pub_test by
factoring out repeated patterns, removing the use of raw YAML, and making the
commands more semantic. The second goal is to set the stage for the use of
ephemeral ports for the mock package server, which will allow multiple instances
of the tests to be run simultaneously.
This was originally submitted as r11261, but that caused test errors due to a
race condition that were then fixed. Then it was submitted as r11266, which
caused further test errors that are now completely fixed.
Review URL: https://chromiumcodereview.appspot.com//10868059
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11273 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 23:10:01 +00:00
rnystrom@google.com
17a941e040
Update pub to new getter syntax.
...
Review URL: https://chromiumcodereview.appspot.com//10869033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11270 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 22:41:47 +00:00
nweiz@google.com
66950a48d0
Reverting 11266
...
Review URL: https://chromiumcodereview.appspot.com//10872050
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11268 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 22:38:29 +00:00
nweiz@google.com
b0511b4d58
Add a number of convenience methods to test_pub.
...
This changelist has two goals. The first is to simply clean up pub_test by
factoring out repeated patterns, removing the use of raw YAML, and making the
commands more semantic. The second goal is to set the stage for the use of
ephemeral ports for the mock package server, which will allow multiple instances
of the tests to be run simultaneously.
This was originally submitted as r11261, but that caused test errors due to a race condition that's fixed in this CL.
Review URL: https://chromiumcodereview.appspot.com//10868058
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11266 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 22:28:23 +00:00
nweiz@google.com
06c640c763
Actually hook server creation into the pub test schedule.
...
Review URL: https://chromiumcodereview.appspot.com//10873003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11265 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 22:09:43 +00:00