[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "pkg unload" opinions please?

From: Andrew Janke
Subject: Re: "pkg unload" opinions please?
Date: Fri, 3 Jan 2020 14:33:13 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.1

On 1/3/20 12:23 PM, Marco Atzeri wrote:
>  Am 03.01.2020 um 15:43 schrieb PhilipNienhuis:
>> Hi,
> Hi Philip,
> my 2c
>> Now the question is: What do we want "pkg unload" to do in the second
>> scenario, where we want to unload just package "A" but some other loaded
>> package "B" depends on "A", whether we know that or not.
>> Mike came up with a few options, repeated below.
>> I'll shamelessly put my own preference here on top, but I'll keep most
>> of my
>> motives for a next post:
>> Given the fact that "pkg load" has an (undocumented) "-nodeps" option:
>> (A0. Document the '-nodeps' option for "pkg load")
>> A1. Emit an error and do not unload "A" and "B"
>> A2. Only unload package "A" if "pkg unload" was called with a "-nodeps"
>> flag; document and implement it.
> A1 should be default
> A2 can can be useful in some testing condition.

I agree.

>> Other options:
>> B. silently unload both A and B
> this should require a separate flag like "-withdepending"

Also agreed.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]