-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Remove deprecated --argfile option #2768
Conversation
Oh never used i think but assumed it was like |
Is there some good compatibility argument for keeping it? |
Thanks! |
@wader asked:
Yes, I believe so, mainly because (a) it's all over the internets (google counts 3,260 pages) and (b) there isn't yet a good substitute (e.g. --slurpfile always slurps). Part of the reason it's been in limbo so long is that there has been some hope that jq's I/O functionality would be significantly overhauled, at which time Anyway, in my opinion, it would have been better to leave it in for 1.7; in fact, maybe it's not too late to revert this particular commit???? @nicowilliams? @itchyny? |
@pkoppstein it's been removed. It will stay removed. There was a deprecation warning for a long time. People will adjust. |
The jq option --argfile was deprecated for a long time and it was finally removed from jq 1.7. The alternative is to use --slurpfile option which basically behaves in a same way. References: - jqlang/jq#2768 - https://github.com/jqlang/jq/releases/tag/jq-1.7
The jq option --argfile was deprecated for a long time and it was finally removed from jq 1.7, which is causing the following error in activation script: jq: Unknown option --argfile The alternative is to use --slurpfile option which basically behaves in a same way. References: - jqlang/jq#2768 - https://github.com/jqlang/jq/releases/tag/jq-1.7
For anyone else coming across this PR who needs to update their existing scripts, and are OK with subpar performance: you can replace Here's an example:
should become
This may not be sufficient for your use case, or there may be better ways of doing it, but this got me back up and running. |
quickfix for deprecated argument jqlang/jq#2768
The
--argfile
option has been documented asDo not use.
since jq 1.5. It has been 8 years, so let's remove this.