-
-
Notifications
You must be signed in to change notification settings - Fork 613
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
Breaking from 2 to 3 (array and comments) #364
Comments
Btw, I agree that the generated YAML is valid. |
I see - this is how the underlying yaml parser library encodes the yaml (https://godoc.org/gopkg.in/yaml.v3). It's annoying it doesn't keep the comments in the right place. I'd raise an issue and link it here (there may already be one?) Like you say, the yaml is valid (and should be equivalant) - but I'm guessing cassandra doesn't like it? Failing a yaml.v3 fix - the only thing I can think of is adding a strip comments flag that will remove all the comments... |
Yep found an existing issue here: |
There is now a strip comments feature in yq to circumvent this issue: https://mikefarah.gitbook.io/yq/usage/output-format#strip-comments |
This has been fixed in 3.3.2 |
I have a breaking change in the version 3 with array and comment, can you help debug this, maybe there is a flag which can help me.
The file 1.txt
The file 2.txt
I want to merge the both,
With the version 2, the result is:
With the version 3, the result is:
My issue is the integration of the comment inside the array:
The format
- seeds:
is necessary in the official cassandra's docker-entrypoint.Thanks!
The text was updated successfully, but these errors were encountered: