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