[racket-dev] Updating dependency packages from other sources

From: Greg Hendershott (greghendershott at gmail.com)
Date: Thu Aug 15 22:21:04 EDT 2013

> If I try to remove just the `x11` package so I can replace it, I get
> this error:
>   $ raco pkg remove x11
>   raco pkg remove: cannot remove packages that are dependencies of other
>   packages
>     dependencies:
>        x11 (required by: (aosd))

It would be nice if this error message appended a hint like:

    You can remove the package anyway with --force.

In fact maybe that's sufficient, don't really need a new `replace' subcommand.

Even with a new `replace', the hint would still be handy (and should
also mention `replace'?) because folks will probably first try to do
what Asumu did?

On Thu, Aug 15, 2013 at 11:07 AM, Asumu Takikawa <asumu at ccs.neu.edu> wrote:
> On 2013-08-15 08:19:06 -0600, Jay McCarthy wrote:
>> As for what we could do going forward, I think either of these
>> approaches could be 'automated'.
> Yes, that'd be great.
>> For instance, we could add a command like
>> $ raco pkg replace x11 new-x11-source
>> This would behave like either of those (which would be invisible to the user).
>> Do you have any opinions about how you'd want to do this replacement?
> Maybe `raco pkg install` can have an additional flag that lets you
> replace existing packages? Or maybe it should allow conflicts if the
> package has the same name as an already installed package (possibly
> prompting/warning the user)?
> Cheers,
> Asumu
> _________________________
>   Racket Developers list:
>   http://lists.racket-lang.org/dev

Posted on the dev mailing list.