-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: do not panic in
env set foo bar ""
(#110)
After interpretation by the shell, `env set foo bar ""` passes an empty string as the value to set. The YAML parser treats the empty string as "no document" and doesn't return any content from Unmarshal. Work around this by treating "no document" as an empty string _literal_ (which is likely the intent). Fixes #109.
- Loading branch information
Showing
3 changed files
with
60 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
### Improvements | ||
|
||
### Bug Fixes | ||
|
||
- Do not panic when `env set` is passed an empty value. | ||
[#110](https://github.com/pulumi/esc/pull/110) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters