-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stage add: quotes are missing in dvc.yaml #6072
Comments
@aguschin, this is expected. You have to escape those quotes explicitly. |
@skshetry could you please provide a bit more context on why is it expected? thanks! |
We use a So, I prefer users to escape things when not working to escape from this ugly parsing stuff. But the fix for this would be to just replace the empty string with a quoted empty string. |
@skshetry, is this also indended?
One may want to provide an empty parameter value, to get
Checked this on dvc installed from the latest commit in master branch 2.3.0+eb46c0 |
For the record, replied in #6107 (comment). |
Bug Report
Description
Quotes in
dvc stage add
aren't added to dvc.yaml as expected. The followingdvc repro
fails as python script expects to have an empty string provided.Reproduce
output:
Expected
Expected to have quotes in the first stage, have two quotes in the second one.
Environment information
Output of
dvc doctor
:Additional Information (if any):
Rechecked this in bash and zsh.
The text was updated successfully, but these errors were encountered: