Matthew Flatt writes:

> At Thu, 05 Nov 2020 13:01:36 -0500, Christopher Lemmer Webber wrote:
>> I'm guessing it's probably due to these error messages:
>> 
>> $ raco pkg update --scope user --clone scribble-lib
>> Inferred package name from given `--clone' path
>>   package: scribble-lib
>>   given path: scribble-lib
>> raco pkg update: package installed in a different scope
>>   package: scribble-lib
>>   current scope: user
>>   installed in scope: installation
>
> The right way to avoid this message in you case is likely to specify
> the same scope as the starting "scribble" copy, which is installation
> scope, via `-i`.
>
>> I see that I can make it happen using the following steps:
>> 
>> cwebber@twig:~/devel/scribble/scribble-lib$ raco pkg install --force
>> [...]
>> 
>> I know you've warned me I don't want to do install --force though. :)
>> 
>> Though... now I've done it for all of the Scribble sub-packages, and
>> things seem to work now...
>> 
>> Might I ask why I shouldn't do the thing I've just done then?
>
> Your installation is now in a state where some packages that depend on
> "scribble" are built against the installation-wide copy, while others
> are (or will become as you run `raco setup` or more package commands)
> built with your user-specific copy.
>
> As long as your work as the same user, and as long as you don't run
> anything that constraints effects to installation scope, then it might
> all work... until it doesn't. Fundamentally, `raco setup` is not
> designed to support dependencies that go backward from installation
> scope to user scope, and so it doesn't make that work reliably.
>
> Most likely, the installation is really all your own, and not
> multi-user. In that case, you should just work at the level of the
> installation to avoid a mismatch.
>
>
> Matthew

I see.  That's a good explaination.

Also all the more motivation to support Guix-based Racket
development... :)

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/87o8kb4mpz.fsf%40dustycloud.org.

Reply via email to