Skip to content

Absolute Paths for Templates? #360

@DevOpsBoondoggles

Description

@DevOpsBoondoggles

Not sure if I'm being stupid here but can I not use an absolute path for a template ?
e.g.

<file destination='src/${PLASTER_PARAM_ModuleName}.psm1' source='${PLASTER_PARAM_TemplatesFolderPath}\template.psm1' />

where ${PLASTER_PARAM_TemplatesFolderPath} goes to \Server\fileshare\

The error:
"template.psm1' specified in the file directive in the template manifest cannot be an absolute path.
Change the path to a relative path."

Which seems really strange. My use case is that I am sharing a module that creates other modules for a company, and I want to reference a shared template in the area.

I'm going to work around by copying it local but wasn't sure if it was just a bad error message and I'm missing something obvious. I did look around but I didn't see anything related, though I could just be being dumb.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions