We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug comments are messed up while using yq write
Input Yaml data1.yml:
$ cat /tmp/4 # comment 1 --- # comment 2 --- # comment 3 --- # comment 4 --- # comment 5 apiVersion: autoscaling/v2beta1 kind: HorizontalPodAutoscaler metadata: labels: app: some-label-gw istio: some-other-value release: istio minReplicas: 2
Command The command you ran:
yq w -d3 /tmp/input.yaml metadata.labels.test value
Actual behavior
comment 1
comment 2
comment 3
comment 4
comment 5
# comment 2 # comment 3 --- # comment 4 --- --- # comment 5 apiVersion: autoscaling/v2beta1 kind: HorizontalPodAutoscaler metadata: labels: app: some-labels-like-custom-istio-ingressgateway istio: some-other-value release: istio test: value minReplicas: 2
Expected behavior comments should be intact
Additional context
yq version 3.2.1
The text was updated successfully, but these errors were encountered:
Duplicate of #427
Sorry, something went wrong.
No branches or pull requests
Describe the bug
comments are messed up while using yq write
Input Yaml
data1.yml:
Command
The command you ran:
Actual behavior
comment 1
is removedcomment 2
andcomment 3
are mergedcomment 4
andcomment 5
Expected behavior
comments should be intact
Additional context
The text was updated successfully, but these errors were encountered: