Skip to content

new - allow absolute or relative paths for templates #1477

Open
@Pilskalns

Description

@Pilskalns

Currently, Chocolatey expects package templates to be placed in C:\ProgramData\chocolatey\templates\<templateName>

It would be very practical to allow also use of relative or absolute paths. Why? It's easier to git-version package template together in the same location with code.

Also, to run code editor on file inside ProgramData needs editor to be launched in elevated mode.

P.S. Currently possible hack/work-around is to use choco new "$package" -t "..\..\..\Path\From\Root\<templateName>" but it doesn't allow jump to another drive.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions