Skip to content

parametrization: fails for non-string interpolations #5006

Open
@skshetry

Description

@skshetry

See: https://github.com/iterative/dvc/wiki/Parametrization#known-issues

If the interpolated value is not a string in the params file, DVC will fail with a validation error.
Let's say, you have params with the following values:

# params.yaml
msg: true

# dvc.yaml
stages:
  echo:
    cmd: ${msg}

It might fail with the error similar to the following:

Running stage 'echo' with command:
        True
ERROR: failed to reproduce 'dvc.yaml': expected str, bytes or os.PathLike object, not bool

Metadata

Metadata

Assignees

No one assigned

    Labels

    A: templatingRelated to the templating featurebugDid we break something?

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions