Templates are incorrectly marked as (Unmanaged)
when there is a package managing the template
#3571
Open
6 tasks done
Labels
Checklist
What You Are Seeing?
There are two ways to have templates in Chocolatey CLI.
templates
folder.When you run
choco template list
it will attempt to find any packages that manage the templates that are found in the template folder. If one is found, the version number of the package is shown. If no package is found, the version is 0.0.0.When you run
choco template info --name <template-name)
it will attempt to find any package that manages the template (if it exists). If one is found, the Title of the template is shown, and if not, the word(Unmanaged)
is prefixed on the title.It would appear that when searching of the package to match the template name, the search is done against currently configured sources, and not of the packages that are currently installed. i.e. via a
choco search
rather than achoco list
.This problem was discovered when testing for the Product Spotlight on Chocolatey Template Packages.
What is Expected?
It should not be necessary for a template package to exist on a currently configured source.
If a template exists, i.e. lives in the
c:\programdata\chocolatey\templates
folder, and there exists a locally installed package with that name, then it should not be marked as(Unmanaged)
and the version of the package should be correctly shown.How Did You Get This To Happen?
choco template list
choco template info --name <template-name)
(Unmanaged)
System Details
N/A - this has been tested on various places, and nothing is specific to the information that is typically captured here
Installed Packages
Output Log
Additional Context
None
The text was updated successfully, but these errors were encountered: