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
From what I can tell, git2consul drops leading whitespace. I was using this to mirror a repo full of yaml files, but trying to parse the yaml from consul was failing. Tracked this to a yaml file of the form
- foo: Foo
- bar: Bar
However, the file appearing in git2consul looked like:
- foo: Foo
- bar: Bar
The former is valid yaml, whilst the latter is not. Changing to
---
- foo: Foo
- bar: Bar
worked around the issue, but ideally we would not need to do this (even though IMO its a better syntax).
Is the removal of leading whitespace by design?
The text was updated successfully, but these errors were encountered:
From what I can tell, git2consul drops leading whitespace. I was using this to mirror a repo full of yaml files, but trying to parse the yaml from consul was failing. Tracked this to a yaml file of the form
However, the file appearing in git2consul looked like:
The former is valid yaml, whilst the latter is not. Changing to
worked around the issue, but ideally we would not need to do this (even though IMO its a better syntax).
Is the removal of leading whitespace by design?
The text was updated successfully, but these errors were encountered: