Commit Graph

107 Commits

Author SHA1 Message Date
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
ager@google.com e86e1cec03 Fix API misuse bug I introduced when fixing another API misuse bug. :-)
R=nweiz@google.com
BUG=

Review URL: https://codereview.chromium.org//10966004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12615 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 06:20:45 +00:00
rnystrom@google.com 395cbc5de5 Create a sensible package cache directory on Windows.
BUG=5236

Review URL: https://codereview.chromium.org//10948046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12612 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-20 00:34:07 +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 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 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 df6862afb7 Fix git on non-Windows. Fix create_sdk on machines using svn.
Review URL: https://codereview.chromium.org//10942032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12575 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-19 16:48:25 +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 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
rnystrom@google.com e11b3b82fe Make args package follow new layout.
Review URL: https://codereview.chromium.org//10919249

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12284 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-12 21:31:42 +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
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
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
nweiz@google.com 441f25547f Pub: fix the 'system_cache' library
There were 2 small errors:

1. The Version class is used, but the 'version' library wasn't imported.
2. The arguments to the PackageId constructor were passed in wrong order.

BUG=

Review URL: https://chromiumcodereview.appspot.com//10928071

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@12147 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-10 19:58:01 +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 29e9417404 One more error code to check.
Review URL: https://chromiumcodereview.appspot.com//10916106

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11854 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 00:45:05 +00:00
rnystrom@google.com b33db2545f Use right errno on Linux.
Review URL: https://chromiumcodereview.appspot.com//10909073

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11853 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 00:30:35 +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
jmesserly@google.com 963d06882b Fix pub to close connection to dartlang.org when it's done downloading
See bug http://dartbug.com/4857
fixes: http://dartbug.com/4856

Review URL: https://chromiumcodereview.appspot.com//10913034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11714 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-31 19:02:42 +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 18f8f5a72f Add a note to Source#install explaining that it should be very light-weight.
Review URL: https://chromiumcodereview.appspot.com//10883072

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11421 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-27 22:21:37 +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 af2d533d41 Fix some compilation errors and warnings in Pub.
Review URL: https://chromiumcodereview.appspot.com//10880055

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11355 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 23:57:42 +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 36575ab9ef Add a missing semicolon to a file in pub.
Review URL: https://chromiumcodereview.appspot.com//10878059

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11342 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 21:01:34 +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
nweiz@google.com 12c59d9112 Don't print Git output when running Pub.
BUG=4412

Review URL: https://chromiumcodereview.appspot.com//10873053

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11281 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 01:04:12 +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
ager@google.com 722c1a3ce6 Deprecate Math object in corelib in favor of dart:math library.
Review URL: https://chromiumcodereview.appspot.com//10829459

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11155 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 14:33:01 +00:00
nweiz@google.com 8a0aabe483 Allow pub install and pub update to update dependers.
If the pubspec has a new dependency which causes an incompatibility with the
locked packages' version constraints, `pub install` will now unlock packages
one by one until a compatible version graph can be found.

`pub update <package>` will now always update the given package to its latest
version, even if that requires updating locked packages that depend on it
transitively. If no amount of updating will make the latest version valid, an
exception will be thrown.

This was originally submitted as r10779

Review URL: https://chromiumcodereview.appspot.com//10837274

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11119 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 00:25:45 +00:00
rnystrom@google.com 952230068c Don't pollute repo with temp dirs for pub tests.
Review URL: https://chromiumcodereview.appspot.com//10825422

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10997 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 20:02:36 +00:00
rnystrom@google.com 180df4ec25 Look for SDK packages in "pkg" in addition to "lib".
Review URL: https://chromiumcodereview.appspot.com//10857059

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10912 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-17 18:04:42 +00:00
dgrove@google.com de531b234a Move args from lib/ to pkg/ .
Review URL: https://chromiumcodereview.appspot.com//10831371

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10910 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-17 17:57:10 +00:00
regis@google.com d9b0276a4c Require two type arguments for map literals (issue 4522).
Spec has been changed back.
VM temporarily accepts a single type argument and emits a warning.
Update tests, dart2js source, dartdoc, etc...
Disable failing co19 tests (issue 175 filed).
Review URL: https://chromiumcodereview.appspot.com//10854191

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10861 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 20:44:32 +00:00
nweiz@google.com 30dc5566d8 Reverting 10779
Review URL: https://chromiumcodereview.appspot.com//10825375

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10781 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 23:32:43 +00:00
nweiz@google.com 8b8f1af9dc Allow pub install and pub update to update dependers.
If the pubspec has a new dependency which causes an incompatibility with the
locked packages' version constraints, `pub install` will now unlock packages
one by one until a compatible version graph can be found.

`pub update <package>` will now always update the given package to its latest
version, even if that requires updating locked packages that depend on it
transitively. If no amount of updating will make the latest version valid, an
exception will be thrown.

Review URL: https://chromiumcodereview.appspot.com//10854152

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10779 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 23:24:24 +00:00
rnystrom@google.com 0bc9b19740 Rename BadNumberFormatException -> FormatException.
Review URL: https://chromiumcodereview.appspot.com//10850034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10354 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-07 20:56:59 +00:00
rnystrom@google.com 4eed14aa17 Get symlinks working in pub on Windows.
Review URL: https://chromiumcodereview.appspot.com//10825158

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10183 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-02 17:27:25 +00:00
rnystrom@google.com a4c11b47d7 Get basic Windows stuff working.
Enable pub tests that do appear to currently pass on Windows.

Review URL: https://chromiumcodereview.appspot.com//10824095

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10100 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 23:54:10 +00:00
nweiz@google.com 812b305657 Fix an isEmpty call.
Review URL: https://chromiumcodereview.appspot.com//10821021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9900 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 18:25:11 +00:00