Skip to content

Undefined variable failing during update but not for copy #1952

Open
@marcelldls

Description

@marcelldls

Describe the problem

Please refer to epics-containers/deployment-template-argocd#11. In this case, where a variable that would be used in a different branch of logic was accidentally being used in a validator, the template "works" when doing a copy. When doing an update however an exception is raised. Ideally we would know if our template is broken before we do updates.

Template

epics-containers/deployment-template-argocd#11

To Reproduce

No response

Logs

Expected behavior

Raise an exception at copy time too

Screenshots/screencasts/logs

No response

Operating system

Linux

Operating system distribution and version

RHEL 8

Copier version

copier 9.4.1

Python version

Python 3.11.3

Installation method

pip+pypi

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugtriageTrying to make sure if this is valid or not

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions