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
ba326cd770
Get rid of old redundant methods in io.dart.
...
Now that we have pkg/path, we can ditch the old methods in io.dart
that do the same thing.
Review URL: https://codereview.chromium.org//12255016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18500 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-14 01:14:31 +00:00
rnystrom@google.com
bd0d874a53
Take Sam Elkhateeb's path for "path" dependencies and clean it up some.
...
BUG=http://code.google.com/p/dart/issues/detail?id=3732
Review URL: https://codereview.chromium.org//12208138
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18465 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 18:47:19 +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
ec020bbd99
Handle circular dependencies on the root package when checking SDK constraints.
...
BUG=dartbug.com/8364
Review URL: https://codereview.chromium.org//12211061
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18198 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-07 00:40:09 +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
rnystrom@google.com
f053f356ee
Clean up code that locates SDK and SDK version.
...
This is prep work for SDK constraints. It moves the SDK
version-related code out of SdkSource (which will go away at some
point) into its own library.
I also removed the need for the DART_SDK env variable. It will
still be used if set (which the tests need), but if not set, Pub
will locate the SDK.
Clean up a few static warnings.
Review URL: https://codereview.chromium.org//11871028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17433 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 23:52:37 +00:00
lrn@google.com
fd8f8fefe6
Fix pub tests.
...
Small tweaks to code.
Review URL: https://codereview.chromium.org//11833032
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16910 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 10:42:37 +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
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
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
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
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
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
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
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
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
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
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
a818022964
Refactor Source to take the system cache as a parameter.
...
Review URL: https://chromiumcodereview.appspot.com//10749014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9519 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-10 18:14:05 +00:00
nweiz@google.com
5a6998d14e
Add a Pub source for pub.dartlang.org.
...
This fixes a race condition in commit 9094.
Review URL: https://chromiumcodereview.appspot.com//10636045
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9132 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 20:01:30 +00:00
nweiz@google.com
d13116a711
Reverting 9094
...
Review URL: https://chromiumcodereview.appspot.com//10666042
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9097 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-25 23:54:43 +00:00
nweiz@google.com
7af3fdfdfa
Add a Pub source for pub.dartlang.org.
...
This fixes a couple typos in commit 9090.
Review URL: https://chromiumcodereview.appspot.com//10658025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9094 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-25 23:45:21 +00:00
nweiz@google.com
3a5c7b9dcc
Reverting 9090
...
Review URL: https://chromiumcodereview.appspot.com//10659019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9093 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-25 23:23:39 +00:00
nweiz@google.com
fffc9979fe
Add a Pub source for pub.dartlang.org.
...
Review URL: https://chromiumcodereview.appspot.com//10628016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9090 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-25 22:52:32 +00:00
nweiz@google.com
3aa0e8b141
Give cached sources control over their cache directories.
...
Review URL: https://chromiumcodereview.appspot.com//10577009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8832 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-18 23:45:36 +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
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
nweiz@google.com
3085912d01
Add support for pub install.
...
This CL does several things:
* Adds explicit infrastructure for package sources.
* Adds the Dart SDK as such a source.
* Adds an explicit class for managing the packages/ directory (AppCache, as
opposed to SystemCache).
* Adds an "install" command that installs to packages/, backed up by the system
cache.
Review URL: https://chromiumcodereview.appspot.com//10340005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7398 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-07 19:58:32 +00:00