Skip to content
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

%YAML 1.1 and '---' not preserved #166

Closed
harleypig opened this issue Jul 17, 2018 · 0 comments
Closed

%YAML 1.1 and '---' not preserved #166

harleypig opened this issue Jul 17, 2018 · 0 comments

Comments

@harleypig
Copy link

'%YAML 1.2' causes a panic, but that's the go yaml library's fault.

This may be related to #19 and others referenced there. The header portion of a strict yaml file is not preserved.

$ cat test.yaml ; yq w test.yaml --inplace a.b d ; printf '=%.0s' {1..40} ; echo ; cat test.yaml
%YAML 1.1
---
a:
  b: c
========================================
a:
  b: d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants