[racket-dev] okay to add planet error check?

From: John Clements (clements at brinckerhoff.org)
Date: Tue Feb 15 16:17:54 EST 2011

On Feb 15, 2011, at 12:55 PM, Carl Eastlund wrote:

> I have a "make unlink" target in my Planet-development Makefile that
> removes all the development links I commonly use.  I use it to start
> fresh, when some or all of the links are installed.  I would rather
> keep the ability to use it regardless of the current set of installed
> links, than have it fail partway through.
> 
> On the other hand, I don't need this behavior to be the default.  If
> you want to make raco signal an error by default, and add a --quiet or
> --force option to restore the current behavior, that would be fine by
> me.

Okay, like this:

pcp070580pcs:~/plt/collects/planet/private clements$ raco planet unlink frooty booty.plt 3 4
no existing links match the given specification

 === context ===
/Users/clements/plt/collects/planet/util.rkt:772:0: remove-hard-link
/Users/clements/plt/collects/planet/raco.rkt: [running body]
/Users/clements/plt/collects/raco/raco.rkt: [running body]
/Users/clements/plt/collects/raco/main.rkt: [running body]

pcp070580pcs:~/plt/collects/planet/private clements$ raco planet unlink --quiet frooty booty.plt 3 4
pcp070580pcs:~/plt/collects/planet/private clements$ 

John

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4669 bytes
Desc: not available
URL: <http://lists.racket-lang.org/dev/archive/attachments/20110215/2610d10f/attachment.p7s>

Posted on the dev mailing list.