You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The behavior of empty variables changes depending on whether a --var is passed into the invocation of boilerplate or not.
If the boilerplate.yml has a variable with a default value of "" and no --var is passed in to determine the value, an empty string is stamped out into the output folder.
If a --var is populated with an empty string, --var EmptyVariable='' it will stamp out <no value>.
If a --var is populated with an empty string inside an empty string, --var EmptyVariable='""' it will stamp out an empty string.
Using the missing-key-action zero does not change this behavior.
To Reproduce
Take a look at the branch bug/missing-key-action-ignored.
Describe the bug
The behavior of empty variables changes depending on whether a
--var
is passed into the invocation ofboilerplate
or not.If the
boilerplate.yml
has a variable with a default value of""
and no--var
is passed in to determine the value, an empty string is stamped out into the output folder.If a
--var
is populated with an empty string,--var EmptyVariable=''
it will stamp out<no value>
.If a
--var
is populated with an empty string inside an empty string,--var EmptyVariable='""'
it will stamp out an empty string.Using the
missing-key-action zero
does not change this behavior.To Reproduce
Take a look at the branch
bug/missing-key-action-ignored
.In this branch, the following command was run:
boilerplate \ --template-url examples/for-learning-and-testing/empty-variable \ --output-folder test-fixtures/examples-expected-output/empty-variable \ --var EmptyVariable='' \ --non-interactive \ --missing-key-action zero
Expected behavior
In this example, a user likely expects for an empty string to be stamped out into the target output folder.
Nice to have
bug/missing-key-action-ignored
The text was updated successfully, but these errors were encountered: