-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"zef install Some::Module" doesn't show the alternatives #227
Comments
To preface, first consider these points:
So what should happen what someone does
While 1 is possible, 2 is the direction that e.g. production grade modules and the ecosystem need to move regardless. It kind of sucks that this means that inside a module like zef I should be pinning the version inside every-single-provides ala Also consider that ultimately ecosystems themselves will play their own role in policy ( what gets chosen when a query has multiple matching distributions ). Policy essentially comes from the package list served by an ecosystem ( to oversimplify ), primarily by the packages included and the ordering of that list. So while this might be a good idea it is only hiding problems that will be encountered ( for instance if the wrong More broadly I think what is needed is a general utility/module to ask for user input based around meta data. Specifically I'm thinking of |
Thanks for your neat explanation!
I understand that.
It sounds good to me. |
I'm still not 100% I get this right but it sounds like zef ultimately installs (or at least pretends to install) compilation units (or maybe more accurately modules) as opposed to distributions. Do I get it right? Because that sounds like a horrible idea, however it would explain the problem with the two It immediately illustrates the fundamental problem of that approach: a module that can have a perfectly legitimate reason to exist on that name, may concur with a standalone, independent, only semantically related distribution that can also have a perfectly legitimate reason to exist on that name. The bitter pill is that this in itself wouldn't solve the whole problem of the name collision: Anyway, having said that, can we agree that dependencies and units of installation for zef are not modules but distributions? |
I forgot to add the "inb4" of "point down the auth". Two problems (edit: in the meantime it turned into 3 lol) with that:
|
Context
"zef install Some::Module" doesn't show the alternatives when there are two modules that have the same name but authored by the different user:
Expected Behavior
zef --force-install install "Term::termios"
shows the alternatives to install and stops its install process temporarily.Actual Behavior
zef --force-install install "Term::termios"
ignores the author name field (i.e., auth) and selects the newer one (i.e., Term::termios:ver<0.0.1>:authgithub:titsuki).Steps to Reproduce
I showed in the Context section.
Your Environment
The text was updated successfully, but these errors were encountered: