logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: --onlyreqdeps: msg#00157

Subject: Re: --onlyreqdeps
Greg Beaver wrote:

Hi all,

I'd like to make another significant change with package.xml 2.0.

Basically, for all packages that are released with a 2.0 package.xml, I'd like all required deps to be installed automatically. In other words, --onlyreqdeps will continue to function as it always has with older package.xml's, but all newer ones won't need the option to work.


Yes, but... I realize you have talked about explicit dependencies. That is, that you could describe a version range for dependecies. This would have to be resolved, because the package being installed could require 1.6, while one already installed can _only_ use 1.5. In an ideal world, this would be impossible, because even minor api changes would not occur. However, as we know, when a bug is resolved, it sometimes burns those who have coded around it. And even if the package had a later release that fixed that workaround problem (which hopefully will be the case without introducing minor bc breakage), it might be that someone hasn't upgraded the that other package for any number of reasons. So this auto install is problematic, to say the least. Complex would probably be a better word for it. However, it would be useful if it works without breaking things :-)

--alldeps also would probably not be necessary, but I might consider having a magic opt dependency group named "all" that will be installed if the --alldeps flag is passed. This would also make uninstalling all optional deps easy.


The registry would have to note whether other packages depend on packages that are depended upon by the package being uninstalled. This is, of course, non-trivial, and it would be nice if it would work better than the dll mess on windows ;-) Somehow there should be a way to note what are libraries that need to be extended (e.g., HTML_Common) and what are directly usable, such as Text_Wiki or Games_Chess. Because even if a package depended on Text_Wiki for some obscure reason, it is not unlikely that Text_Wiki would still be needed if the package depending on it were uninstalled.

Anyway, just my 2 cts. Keep up the great work.

Klaus



<Prev in Thread] Current Thread [Next in Thread>