Option to prefer .portable packages #371
Labels
0 - Backlog
Has related issue
This issue has a related issue that would need to be addressed before this issue could be closed.
Improvement
Milestone
There are myriad
foo.portable
/foo.install
package couplets, and it isn't always consistent which package the root packagefoo
points to. Having a global setting, possibly inchoco feature
, would greatly simplify the task of preferably/exclusively installing "portable" or "install" packages. Such an option would also mean that such Chocolatey users wouldn't have to avoid packages that depend on root packages that require the "install"/"portable" version.This is similar to #258, but can be implemented much sooner, as it doesn't require having additonal knowledge of how each
.install
package works.It likely requires the addition of a
[packages.metadata.type]
entry to the nuspec of the root package, marking it as "virtual" or "meta". Once this is present, the.portable
version could be inferred by appending.portable
to value of[packages.metadata.id]
. The has the advantage that variants don't need to be explicitly characterized. It doesn't work for old.commandline
packages though, which should be deprecated by creating and depending on a.portable
package anyway.Another design is to have a
[packages.metadata.variants]
tag containing theid
s of package variants, with entries like<portable>foo.portable</portable>
,<install>foo.install</install>
, and even<portable>foo.commandline</portable>
. This isn't necessarily incompatible with inferring ids, since the absence of aportable
variant could simply default tofoo.portable
, should such a package exist.(edited due to horrible keyboard)
The text was updated successfully, but these errors were encountered: