You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
A user might want to install a package X that already exists, but only because it is a dependency of another package P. If this other package P is removed, then X is also removed, which the user might want to prevent by installing X manually before removing P.
Describe the solution you'd like
Installing such a package should ask the user if they want to "mark as explicit installation" or something like that. Implementation-wise this means that the owner references of the package need to be removed.
For this approach, we can make use of cli to mark the package as explicit during installation as well as after installation by labeling them as explicit.
For example: glasskube install myapp --explicit
or
(for already installed package or after installation) glasskube explicit myapp
Creating a json file like structure which can store the package name in the explicit key.
Somewhat like what package.json has in React
For example, in explicit.json
{
"explicit:": [
"myapp1",
"myapp2",
]
}
These two approaches came in my mind. What are you takes on these. Please share your feedback.
@hanshal101 we can't really start working on this yet, but thanks for your thoughts on this.
However, marking a package as "explicit" (or whatever we want to call it), is nothing that the user wants immediately when installing a package – instead they will be asked by the CLI/UI if and only if the desired package already exists because it is a dependency of another package. So this will have to be checked, and if the user says "yes", the owner references need to be removed.
Ok, you mean whenever a user deletes a particular package which has the dependency on another package. And if he wants to remove the another package he should type yes is that the case?
Is your feature request related to a problem? Please describe.
A user might want to install a package
X
that already exists, but only because it is a dependency of another packageP
. If this other packageP
is removed, thenX
is also removed, which the user might want to prevent by installingX
manually before removingP
.Describe the solution you'd like
Installing such a package should ask the user if they want to "mark as explicit installation" or something like that. Implementation-wise this means that the owner references of the package need to be removed.
Describe alternatives you've considered
Additional context
Related #430
The text was updated successfully, but these errors were encountered: