Commit Graph

50 Commits

Author SHA1 Message Date
Matthew Flatt
b5d874e35d raco pkg: allow read operations on read-only package data
In particular, `raco pkg show' should work when the user does not
have write access to the installation directory or installation-wide
package database.

Merge to v5.3.2
2013-01-13 07:56:46 -07:00
Jay McCarthy
9015c15eec test - Supporting packages in raco test 2013-01-09 08:12:56 -07:00
Jay McCarthy
7cddc64e5a pkg - Improving error message on bad github urls 2013-01-09 07:34:56 -07:00
Jay McCarthy
f3a3c64720 pkg - Adding explanation of github supporting tags 2013-01-09 07:34:35 -07:00
Jay McCarthy
9d4e47a96e Update URLs again to r-l.o domain 2013-01-09 06:31:02 -07:00
Jay McCarthy
b0f3f03412 Removing exotic ports for PNRs 2013-01-08 07:42:51 -07:00
Matthew Flatt
05837fac1b planet2: installation-wide config of default `raco pkg' scope
With either
  configure --enable-pkgscope=installation
or
  raco pkg config -i --set default-scope installation
the default scope of `raco pkg' actions can be changed from
user-specific to installation-wide.

We considered trying to guess when someone building Racket would prefer
installation-wide package scope by default. In particular, someone
building from source for in-place use seems likely to want
installation-wide scope by default. Then again, we don't want to
discourage in-place builds for Unix installations that are intended
for multiple users. So, no guessing for now.

Also, add a `--scope' argument to `raco pkg' commands, which is more in
line with other options, but keep `-i', etc., as shorthands.
2013-01-06 11:17:22 -07:00
Matthew Flatt
42c77d6290 planet2 docs: move and tweak expanation of package-library `require' 2013-01-03 07:34:33 -07:00
John Clements
5a4098ffec added docs on requiring planet2 modules 2013-01-02 14:23:42 -08:00
Matthew Flatt
853f959622 raco pkg: improve command-line checking and error reporting
For example, complain if both `-u' and `-i' are specified,
or if a bad `--deps' mode is provided.
2012-12-22 09:43:19 -07:00
Matthew Flatt
61e0610b2a raco pkg show: add -v'/--version' argument for selecting a Racket version
This is sortof a step toward `raco pkg migrate'.
2012-12-22 09:43:19 -07:00
Matthew Flatt
fdcd030e54 raco pkg show: tweak output format 2012-12-22 09:43:19 -07:00
Matthew Flatt
5259f159af planet2: include the Racket version number in a PNR request
The version number is included as the query part of the constructed
URL, so it is easily ignored by a server. The intent is that the
PLT PNRs will eventually support version-specific results.
2012-12-21 11:51:09 -07:00
Matthew Flatt
0e140a8173 planet2: versions for dependencies 2012-12-21 11:51:08 -07:00
Matthew Flatt
bfe9548aa6 planet2: "package name service" => "package name resolver" 2012-12-21 11:51:08 -07:00
Matthew Flatt
b644bb2901 planet2: remove "METADATA.rktd" compatibility 2012-12-21 11:51:08 -07:00
Matthew Flatt
dc3f142f31 planet2: log errors that are otherwise ignored
For example, log an error for an ill-formed "info.rkt".
2012-12-18 08:05:33 -07:00
Jay McCarthy
8d1dbdd9ad Cleaning up offical PNS server re: Danny 2012-12-08 09:09:39 -07:00
Jay McCarthy
40964d766e Nicer indentation and fixing a typo in db reading 2012-12-04 19:41:00 -07:00
Jay McCarthy
ce7b9f7b6f Deal with bad metadata more gracefully
Without this patch, you can't uninstall or do anything if a single
package has broken metadata, because everything crashes.
2012-12-03 22:17:53 -07:00
Jay McCarthy
7235382107 Fixing typos in various places 2012-12-03 22:07:48 -07:00
Jay McCarthy
ed00c8d70c Fixing a typo in the P2 package name docs 2012-12-03 13:13:34 -07:00
Matthew Flatt
3d38d84cc4 planet2: remove obsolete note in docs and help 2012-12-02 08:03:54 -07:00
Matthew Flatt
b83804c153 raco pkg: normalize error reporting
Use `raise-user-error' for `raco pkg ...' errors, so that stack
traces don't print out for external errors. Reformat error messages
generally to match current conventions. Use logging for debugging
output.
2012-11-30 19:09:19 -07:00
Matthew Flatt
59f289249f raco pkg: user-specific and version-specific by default
The default `raco pkg' mode should work right for a
multiple-version installation (because everything in
Racket should work in a multiple-version installation).
Along the same lines, `raco pkg' should work if the
installation directory is unwriteable. So, the default
mode is user-specific and version-specific.

Use `--shared' or `-s' for user-specific, all-version
installs.

By default, `raco pkg show' now shows packages installed
in all three modes (installation-wide, user- and version-
specific, and user-specific all-version). Use `-i', `-u',
or `-s' to show just one of them.
2012-11-30 19:09:19 -07:00
Matthew Flatt
7712d1a15b call "Planet2" just "the package manager" in its docs 2012-11-30 19:09:19 -07:00
Matthew Flatt
567a84cd31 raco pkg install: limit `raco setup' to installed collections
A package can specify `setup-collects' in its "info.rkt" to override
this default.
2012-11-30 19:09:19 -07:00
Matthew Flatt
381d9d84d6 raco pkg: switch from "METADATA.rktd" to "info.rkt"
For now, "METADATA.rktd" is still recognized as a fallback.

Also, rewrite package source type and name inference,
make ".zip" the default format for `raco pkg create',
and many doc edits.
2012-11-30 19:09:19 -07:00
Matthew Flatt
15cbfa1947 `raco pkg': fixes for package source inference and handling
Also, test additions and documentation adjustments.
2012-11-29 06:43:51 -07:00
Matthew Flatt
b16679266a raco pkg: --dont-setup' to --no-setup' and help text adjustments
Adjustements are for case and setence consistency and to fit
in 80 columns.
2012-11-29 06:27:38 -07:00
Matthew Flatt
3c253b0e2b raco pkg': treat ".plt" format consistently with raco setup -A'
An old package intended for use with `raco setup -A' can be
installed with `raco pkg install'.

A package created with `raco pkg create --format plt' can be
installed with `raco setup -A', although it could leave behind
weird "MANIFEST.rktd" and other files in the "collects" directory.

An old package created with `raco pkg create --format plt' still
can be used with `raco pkg install', although not with `raco setup -A'.

The change from previous 'raco pkg' behavior is that package content
now claims to be in a "collects" directory that is
installation-relative, and unpacking redirects "collects" to the
package-staging area. At the same time, unpacking still works the
same as before on ".plt" archives that are not installation-relative.
2012-11-29 06:27:38 -07:00
Matthew Flatt
abe4c1143f make raco pkg install' call raco setup' via `setup/setup'
Instead of using `system'.
2012-11-29 06:27:38 -07:00
Matthew Flatt
610587bf6e raco pkg install: change inference of package sources
A file package source is inferred only if suitable file suffix is
present, etc.
2012-11-29 06:27:37 -07:00
Asumu Takikawa
5e54ff90d4 Index raco pkg command 2012-11-26 17:52:43 -05:00
Jay McCarthy
accdcb755a Preventing planet2 from running 'raco setup' on updating when no updates were available 2012-11-24 09:22:14 -07:00
Matthew Flatt
df4563588e switch raco pkg create' to file/tar' and `file/zip' 2012-11-20 10:12:27 -07:00
Matthew Flatt
376b1f373a switch raco pkg install' to use file/unzip' 2012-11-20 10:12:27 -07:00
Matthew Flatt
68bdf190d7 switch raco pkg install' to use file/untgz' 2012-11-19 17:01:01 -07:00
Jay McCarthy
b401a92709 Clarify raco pkg install arguments 2012-11-12 12:03:40 -07:00
Jay McCarthy
f5995ec0cc Removing default from 'raco pkg create' 2012-11-12 12:03:40 -07:00
Jay McCarthy
a2b1d4186b Requiring -a on 'raco pkg update' to update all packages 2012-11-12 12:03:40 -07:00
Jay McCarthy
fbed04db70 Revert "Changing the convention of referring to PLT in Planet 2 docs"
This reverts commit 14c169623f4bcffd41d145dfed2bc8317b5faffc.
2012-11-12 12:03:40 -07:00
Jay McCarthy
ddd03347ea Adding a note about metadata file to suggest Planet 2 package creation 2012-11-12 12:03:40 -07:00
Jay McCarthy
dfdbd4c147 Changing Planet 2 package design re: sub-collections 2012-11-12 12:03:40 -07:00
Jay McCarthy
4649d59125 Changing git suggestion re: Eli and Sam in Planet 2 docs 2012-11-12 12:03:39 -07:00
Jay McCarthy
1d3aa61c2a Changing the convention of referring to PLT in Planet 2 docs 2012-11-12 12:03:39 -07:00
Jay McCarthy
74c9871dbe Fixing typos in Planet 2 docs 2012-11-12 12:03:39 -07:00
Jay McCarthy
2265a0a0b5 Fixing typos in Planet 2 docs 2012-11-12 12:03:39 -07:00
Jay McCarthy
5c2fef8a6e Clarify some Planet 2 documentation re: comments 2012-11-12 12:03:39 -07:00
Jay McCarthy
fae660b0e4 Release Planet 2 (beta)
This was developed in a different repository, so the history will be
archived there:

https://github.com/jeapostrophe/galaxy
2012-11-08 06:16:42 -07:00