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 key size in dicts seems to be limited to 128 characters.
Version of yq: 4.24.5
Operating system: mac
Installed via: homebrew
Input Yaml
Concise yaml document(s) (as simple as possible to show the bug, please keep it to 10 lines or less)
values.yaml:
# this is okTHIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS: "egal"# too longTOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO: "egal"
Command
The command you ran:
yq . values.yaml
Actual behavior
# this is okTHIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS: "egal"# too long? TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO: "egal"
Expected behavior
# this is okTHIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS_OK_THIS_IS: "egal"# too longTOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO_LONG_TOO: "egal"
The text was updated successfully, but these errors were encountered:
I can replicate this. This is caused by the underlying yaml parser go-yaml.
For what it's worth - it's still valid yaml, it's just a formatting choice by the library. I'm guessing to split the entry so that they key is on one line 🤷🏼
mikefarah
changed the title
The key size in dicts seems to be limited to 128 characters
Strange formatting when the key size is greater than 128 characters
Apr 26, 2022
Describe the bug
The key size in dicts seems to be limited to 128 characters.
Version of yq: 4.24.5
Operating system: mac
Installed via: homebrew
Input Yaml
Concise yaml document(s) (as simple as possible to show the bug, please keep it to 10 lines or less)
values.yaml:
Command
The command you ran:
Actual behavior
Expected behavior
The text was updated successfully, but these errors were encountered: