We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
-i
Describe the bug if I try to modify in file a file then you get an error:
22:30:07 safelyRenameFile [ERRO] Failed copying from /tmp/temp3534060719 to foo 22:30:07 safelyRenameFile [ERRO] open foo: permission denied
Steps to reproduce
$ cat <<EOF > foo bar: - far1 - far2 - falala EOF
$ docker run --rm -i -v ${PWD}:/workdir mikefarah/yq eval -i 'del( .bar[] | select(. == "far*") )' foo 22:30:07 safelyRenameFile [ERRO] Failed copying from /tmp/temp3534060719 to foo 22:30:07 safelyRenameFile [ERRO] open foo: permission denied
If you try without the -i option then there is no problem:
$ docker run --rm -i -v ${PWD}:/workdir mikefarah/yq eval 'del( .bar[] | select(. == "far*") )' foo bar: - falala
Version of yq: 4.X.X Operating system: linux Installed via: docker
Input Yaml Concise yaml document(s) (as simple as possible to show the bug, please keep it to 10 lines or less) data.yml:
bar: - far1 - far2 - falala
Command The command you ran:
docker run --rm -i -v ${PWD}:/workdir mikefarah/yq eval -i 'del( .bar[] | select(. == "far*") )' foo
Actual behavior
Expected behavior
bar: - falala
Additional context didn't find in the manual how to handle this scenario.
The text was updated successfully, but these errors were encountered:
sorry for the noise, looks like it is possible, as mentioned here
Sorry, something went wrong.
No branches or pull requests
Describe the bug
if I try to modify in file a file then you get an error:
Steps to reproduce
If you try without the
-i
option then there is no problem:Version of yq: 4.X.X
Operating system: linux
Installed via: docker
Input Yaml
Concise yaml document(s) (as simple as possible to show the bug, please keep it to 10 lines or less)
data.yml:
Command
The command you ran:
Actual behavior
Expected behavior
Additional context
didn't find in the manual how to handle this scenario.
The text was updated successfully, but these errors were encountered: