-
Notifications
You must be signed in to change notification settings - Fork 136
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
ytt fmt changes yaml structure #817
Comments
This issue is being marked as stale due to a long period of inactivity and will be closed in 5 days if there is no response. |
Nah, not stale. |
@Zebradil Sorry for the delay in response. This seems to be a bug and we are able to reproduce this. |
Hey @vmunishwar, no worries. I'll provide more context. I have a workflow in which I want to format yaml files in a consistent way. I was using However, this is not blocking me. In golang code, I format yaml files with the yaml package and outside I still use |
I've run into this same issue. This seems like it renders What good is a code formatting tool that changes the meaning of your code? |
will check this issue this week. |
What steps did you take:
What happened:
Notice how the empty map is replaced by
another top-level element
, which becomes a list element oftop-level list with empty map
.What did you expect:
The output yaml is structurally identical to the input yaml.
Environment:
Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.
The text was updated successfully, but these errors were encountered: