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 merge splits keys containing dots #345

Closed
gisql opened this issue Feb 6, 2020 · 2 comments
Closed

Yaml merge splits keys containing dots #345

gisql opened this issue Feb 6, 2020 · 2 comments
Labels

Comments

@gisql
Copy link

gisql commented Feb 6, 2020

Example:

$ cat a.yaml 
test:
  a.b.c:
    foo: bar
$ cat b.yaml 
test:
  a.b.c:
    boo: goo
$ yq merge a.yaml b.yaml
test:
  a.b.c:
    foo: bar
  a:
    b:
      c:
        boo: boo

Just to be clear, the expected output is (which is what used to happen for version 2.xx):

test:
  a.b.c:
    boo: boo
    foo: bar

I tried quoting the "a.b.c" in the b.yaml --- the same. It's clearly a bug: even if, for whatever reason, yq should split keys on dots, this should happen for both the a.yaml and the b.yaml.

@mikefarah mikefarah added the bug label Feb 6, 2020
@mikefarah
Copy link
Owner

Can confirm it's a bug - luckily this PR #342 by @coryrc fixed it! Will be out in the next release

@mikefarah
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants