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

Merging into an Empty file #298

Closed
abdiriman opened this issue Nov 18, 2019 · 3 comments
Closed

Merging into an Empty file #298

abdiriman opened this issue Nov 18, 2019 · 3 comments

Comments

@abdiriman
Copy link

I've got two Yml files which hypothetically are example.yml and example2.yml.

The example.yml file has

ES:
port: port

The example2.yml file is empty.

I am trying to merge the contents of example.yml into example2.yml file which is empty.

The command I am running is yq m -i example2.yml example.yml

Error I get: Error: asked to process document index 0 but there are only 0 document(s)

@abdiriman
Copy link
Author

Also how would i install your version of yq correctly in a docker-file? I noticed there is a-lot of versions of "yq" out there.

@mikefarah
Copy link
Owner

yq has prebuilt docker image, or you can build your own. Take a look at the Dockerfile in github

@mikefarah
Copy link
Owner

Done! https://github.com/mikefarah/yq/releases/tag/3.1.0

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