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
76ec804170
Auto-reinstall broken packages in the system cache.
...
BUG=http://code.google.com/p/dart/issues/detail?id=5939
Review URL: https://codereview.chromium.org//12225149
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18480 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 21:11:12 +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
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
nweiz@google.com
71e2fc2bf4
Fix analyzer errors/warnings for Pub.
...
Review URL: https://codereview.chromium.org//11609005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16299 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-19 01:08:42 +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
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
rnystrom@google.com
5704507534
Show better error messages in network failures.
...
We had decent messages for a couple of failure modes. This tries
to catch some more.
Review URL: https://codereview.chromium.org//11369066
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14543 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 20:42:39 +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
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
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
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
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
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
b2ee421a78
Add support to the version solver for sources that only have a single version per package.
...
Review URL: https://chromiumcodereview.appspot.com//10690127
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9567 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-11 19:14:35 +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
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
bfe7935124
First pass at version constraint solver.
...
It does:
- Walk dependency graphs.
- Unify shared constraints.
- Go through Source to get dependency and version information.
- Handle the fact that everything is async.
- Find best versions that match all constraints.
- Error out if it can't find a match or gets stuck in a loop.
- Have an OK amount of tests.
It does not:
- Handle dependencies from different sources.
- Integrate with the rest of pub.
- Implement an actual "pub update" command.
- Do very much to minimize server traffic.
(Though it does cache pubspecs it has requested.)
Review URL: https://chromiumcodereview.appspot.com//10540151
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8985 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 15:50:57 +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