Skip to content

exp run: fails when empty string or nothing is supplied #6129

@aguschin

Description

@aguschin

Bug Report

Description

When I try to run experiment and set some parameter to be empty or "", I get an error.

Reproduce

dvc exp run -S param=
ERROR: Must provide a value for parameter 'param'
# or
dvc exp run -S param=""
ERROR: Must provide a value for parameter 'param'

Expected

For the dvc exp run -S param= I expected to get the following:

# params.yaml
param:

And for the dvc exp run -S param="" I expected to get:

# params.yaml
param: ""

Environment information

Checked this few days ago on dvc installed from the commit in master branch 2.3.0+eb46c0

Metadata

Metadata

Assignees

No one assigned

    Labels

    A: experimentsRelated to dvc expbugDid we break something?

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions