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
rnystrom@google.com
9125bd4591
Clean up command help.
...
It was missing a newline before which made it look busted:
some command helpUsage: pub foo
Review URL: https://codereview.chromium.org//11485012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15944 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-11 02:15:05 +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
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
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
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
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
nweiz@google.com
ae7c34c537
Make "pub update PACKAGE" update a specific package.
...
Review URL: https://chromiumcodereview.appspot.com//10809058
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9899 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 18:23:18 +00:00
nweiz@google.com
d4ef73e116
Make "pub update" update all packages.
...
Review URL: https://chromiumcodereview.appspot.com//10809057
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9825 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-23 20:13:33 +00:00
nweiz@google.com
0db73f5236
Add a "help" command to Pub.
...
Review URL: https://chromiumcodereview.appspot.com//10805017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9765 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-19 18:10:39 +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
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
rnystrom@google.com
36371653f4
Refactor command code and add support for --help and --version.
...
Review URL: https://chromiumcodereview.appspot.com//10214006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6985 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 00:45:24 +00:00
rnystrom@google.com
8c913b10fc
First pass at "pub update" implementation.
...
This will create a "packages" directory next to the current
package's entrypoint and populate it with symlinks to packages
in the pub package cache. Transitive dependencies are handled.
Review URL: https://chromiumcodereview.appspot.com//10207018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6979 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-25 22:18:15 +00:00
rnystrom@google.com
9c5e4a2ec2
Start implementing pub object model. Rudimentary package cache class, and a simple pub command to list its contents.
...
Review URL: https://chromiumcodereview.appspot.com//10091014
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6779 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-20 00:00:05 +00:00