Commit Graph

46 Commits

Author SHA1 Message Date
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 10f7ad94ae Clean up some warnings and deprecated calls.
Review URL: https://codereview.chromium.org//12262056

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18550 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 01:10:07 +00:00
rnystrom@google.com b3606c9047 Tweak SDK constraint checking a bit.
Review URL: https://codereview.chromium.org//12171002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18020 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-02 00:47:26 +00:00
rnystrom@google.com b6d5dc7f5a Make a bunch of stuff in pub synchronous.
Review URL: https://codereview.chromium.org//12079112

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18019 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-02 00:30:16 +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
rnystrom@google.com 344249b02f Get rid of unneeded Future.immediate() calls.
Future.then() will now implicitly wrap the callback result in a
future if it isn't one, so this manual wrapping can be removed.

Also take advantage of the fact that Future.immediate() is always
async now and remove some workarounds.

Finally, noticed there were two copies of the git-related code
floating around so killed the old one.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17519 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 01:13:36 +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
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
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
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
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
rnystrom@google.com c5fb8014cb Try setting the working directory explicitly.
This shouldn't be necessary but I want to see if this makes the
Windows buildbots happy.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14650 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-07 20:49:40 +00:00
floitsch@google.com 2e778387b3 Make getKeys, getValues getters (keys, values).
Review URL: https://codereview.chromium.org//11267018

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14093 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-25 19:22:11 +00:00
floitsch@google.com 09f6d09d88 Make isEmpty a getter.
Review URL: https://codereview.chromium.org//11238035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14022 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-24 15:04:32 +00:00
regis@google.com 8c3cfbb381 Second round of cleanups for new optional parameter semantics.
Review URL: https://codereview.chromium.org//11194025

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13759 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-17 20:58:19 +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
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 eb33df709b Include stderr on git failure.
Also moves the git stuff out of io into its own library.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13388 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-09 00:56:57 +00:00
rnystrom@google.com 6a2cac8d2a Create destination directory before git cloning into it.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13334 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-05 23:13:14 +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 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 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 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 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
nweiz@google.com 7b72bd1b8d Use a lockfile to persist Pub's installed version constellation.
This fixes a race condition in r9767 caused by issue 4155.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9824 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-23 19:36:22 +00:00
nweiz@google.com 20b75854d1 Reverting 9767.
Review URL: https://chromiumcodereview.appspot.com//10803042

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9768 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-19 19:44:30 +00:00
nweiz@google.com 915c6be38b Use a lockfile to persist Pub's installed version constellation.
Review URL: https://chromiumcodereview.appspot.com//10796021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9767 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-19 19:37:09 +00:00
nweiz@google.com 38add2cf87 Allow the Git source to depend on a specific revision.
Review URL: https://chromiumcodereview.appspot.com//10790021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9693 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-17 02:36:06 +00:00
nweiz@google.com 97269ad9ac Make the Git source install to the system cache.
This is the same change as r9527, except it doesn't use the --progress flag
which is unsupported on the buildbot.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9540 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-11 00:37:27 +00:00
nweiz@google.com 5b3f06ec6f Reverting 9527
Review URL: https://chromiumcodereview.appspot.com//10695132

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9531 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-10 21:59:27 +00:00
nweiz@google.com 2927ef893c Make the Git source install to the system cache.
Review URL: https://chromiumcodereview.appspot.com//10736015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9527 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-10 21:33:01 +00:00
nweiz@google.com 8f53bf75f9 Make VersionSolver source- and description-aware.
Review URL: https://chromiumcodereview.appspot.com//10690032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9260 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-29 19:36:05 +00:00
rnystrom@google.com e4ce65ae8f Get rid of #source in pub.
Review URL: https://chromiumcodereview.appspot.com//10442023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7967 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-24 23:29:18 +00:00
rnystrom@google.com b0885dcd7a Make pub handle missing git more gracefully.
- Put in place the basics for reporting errors to the user.
- If you try to install a git package without git installed, you will get
  a nice error.
- Don't run git-related pub tests locally if the user doesn't have git
  installed.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7959 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-24 18:33:13 +00:00
rnystrom@google.com 20c48b237f Get codebase ready for actually supporting versioning.
Review URL: https://chromiumcodereview.appspot.com//10399076

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7776 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-18 23:14:18 +00:00
nweiz@google.com a8038715b0 Add a Pub source that checks packages out from Git.
This was submitted as r7623, but was then reverted due to test failures. The new
version doesn't depend on Git's output.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7629 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-14 21:36:55 +00:00
nweiz@google.com cd3261497d Reverting 7623
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7626 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-14 20:29:38 +00:00
nweiz@google.com 5dfb6baea5 Add a Pub source that checks packages out from Git.
Review URL: https://chromiumcodereview.appspot.com//10386021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7623 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-14 19:53:49 +00:00