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

Piping into 'del' doesn't work #793

Closed
mikefarah opened this issue Apr 24, 2021 · 1 comment
Closed

Piping into 'del' doesn't work #793

mikefarah opened this issue Apr 24, 2021 · 1 comment
Labels

Comments

@mikefarah
Copy link
Owner

Describe the bug

Piping into the del operator does not work - del only works properly when run first.

Version of yq: 4.7.0
Operating system: linux
Installed via: binary

Input Yaml
Concise yaml document(s) (as simple as possible to show the bug, please keep it to 10 lines or less)
data1.yml:

container:
  fieldA: keep
  fieldB: keep
  field: delete

Command
The command you ran:

yq e '.container | del(.field)' test.yaml 

Actual behavior

fieldA: keep
fieldB: keep
field: delete

Expected behavior

fieldA: keep
fieldB: keep

Additional context

Found here #790 by @pmorch

mikefarah added a commit that referenced this issue Apr 25, 2021
@mikefarah
Copy link
Owner Author

Fixed in 4.7.1

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

1 participant