summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2023-06-01Update git submodule commit of oniguruma from 6fa38f4 to 078f95eowenthereal/2561Hanson Char
2023-06-01Merge old jqlang/jq master to the latest (#2596)Owen Ou
* Try making some GitHub Actions * GHA: Add OS X, Windows, and Linux w/ scan-build builds * Add link to discord server Add link to discord server * Update Ubuntu to 22.04 for GitHub Actions * Remove if condition for Ubuntu build * Fix MacOS OS on GitHub Actions * Fix python3 package on GitHub Actions * Disalbe valgrind Getting failed tests: https://github.com/jqlang/jq/actions/runs/5113866588/jobs/9193542140#step:9:341 * Format file * Fix macos build * Fix syntax errors of windows build https://github.com/jqlang/jq/actions/runs/5114162556/workflow * Install windows package with choco * Pin oniguruma to 5a24a49d710a9e3bb8ff11d12e1eae5a9f9df40c MacOS build [fails](https://github.com/jqlang/jq/actions/runs/5114162555/jobs/9194126677#step:6:3160) due to ``` posix.c:94:3: error: implicit declaration of function 'onig_end' is invalid in C99 [-Werror,-Wimplicit-function-declaration] onig_end(); ``` The current `oniguruma` revision 6fa38f4084b448592888ed9ee43c6e90a46b5f5c (15 Mar 2017) lacks the following explicit declaration in src/onigposix.h: ``` ONIG_EXTERN int onig_end P_((void)); ``` This was added to oniguruma in revision 5a24a49d710a9e3bb8ff11d12e1eae5a9f9df40c (8 Sep 2017). Ref: https://github.com/jqlang/jq/issues/2381 * Revert windows build to use pacman * Don't zip jq.exe * Fixing windows build * Update .gitattriutes for eol on Windows * Skip workflow_dispatch for windows build * Clean up builds * Use LF line endings for all text Ref: https://github.com/actions/checkout/issues/135 * Fix test that has rounding error https://github.com/jqlang/jq/pull/2596#issuecomment-1568498993 * Enable CI for all --------- Co-authored-by: Nicolas Williams <nico@cryptonector.com>
2023-05-28Update URLs from stedolan to jqlangStephen Dolan
2023-05-28Fix website build by adding Loader parameter to yaml.loadStephen Dolan
2022-05-26docs: Document repeat(exp)Mattias Wadman
2022-05-26Mention -n in IO-section and for input/inputsMattias Wadman
2022-05-26Fix iterration problem for non decimal stringTomas Halman
When the string transformation to number failed, all following transformation failed too. This happend because status in decNumberFromString function is updated just in error case. Reusing the DEC_CONTEXT that failed before results into error even if the string is valid number.
2022-05-26docs: point to Libera.Chat instead of FreenodeNaïm Favier
2022-05-26Missing "va_end" call. This was found by running the cppcheck static ↵Lukas Lansky
analysis where it shows as error.
2022-05-26Add --recursive to git cloneSean Wei
2022-05-26docs(manual): fix the typo errors in the manualZhaohui Mei
2022-05-26docs: Fix some format inconsistencies in manualMattias Wadman
2022-05-26fixes incorrect example in man pageGijs Kunze
2022-05-26jq is now available through fink.dak180
2022-05-26Fix typo in compile.cIkko Ashimine
alrady -> already
2022-05-26Fixed typosStefan
2022-04-04Update AUTHORSOwen Ou
2022-04-04Update my contributor infoOwen Ou
My GitHub profile is at https://github.com/owenthereal
2021-10-24Fix accidentally quadratic behavior in _modifyNicolas Williams
We need to be careful to not grab an extra reference when mutating data structures because that means we make extra copies. Doing that every time in `_modify` is really painful, as that function implements `|=` and all modify-assign operators. `jv_setpath()` also grabs additional references, so this is not the only fix needed for the modify-assign operators to not be accidentally quadratic. We have to use `LOADVN` in order to make this fix possible, so we should really byte-code `_modify` rather than jq-code it. However, as a stop-gap to make this fix easier, I'm adding syntax for referring to a `$binding` such that you get `LOADVN` instead of `LOADV`. This syntax is not meant to be used outside jq's internals! Therefore it is not documented. I promise to break it later, so don't use it! TBD, but later: - Optimize `_modify` for the case where `update` outputs more than one value. This is trivial: add a `setpath($p; null)` in the middle of `_modify` before calling `update`. But unfortunately the VM retains a reference to `value_at_path` for path expression checking, and fixing that will require more work.
2021-10-24Fix accidentally quadratic behavior in setpathNicolas Williams
We need to be careful to not grab an extra reference when mutating data structures because that means we make extra copies. Doing that every time in `jv_setpath()` is really painful, as that function is used in `_modify/2`, which is used in `|=` and all modify-assign operators. `_modify` also grabs additional references, so this is not the only fix needed for the modify-assign operators to not be accidentally quadratic.
2021-10-24Fix LOADV/LOADVN refcount printingNicolas Williams
2021-10-24Fix crash in LOADVN when stack growsNicolas Williams
This `stack_push()` call in LOADVN invalidates `var`: jv* var = frame_local_var(jq, v, level); jv_free(stack_popn(jq)); ------>stack_push(jq, *var); *var = jv_null(); ^^^^^^ We have to re-compute `var`: jv* var = frame_local_var(jq, v, level); jv_free(stack_popn(jq)); stack_push(jq, *var); ------>var = frame_local_var(jq, v, level); *var = jv_null();
2021-10-24Appveyor: Get Appveyor building againNicolas Williams
2021-10-24Update docs/Pipenv.lockNicolas Williams
2021-09-06Fix Windows build for 1.7 release (moar)Nicolas Williams
2021-09-03Fix Windows build for 1.7 release (pthread stuff)Nicolas Williams
2021-05-01Fix msys2 installation on AppVeyoritchyny
Ref: https://www.msys2.org/news/#2020-06-29-new-packagers
2021-05-01Fix incorrect if empty string exampleMattias Wadman
2021-05-01update the version available through Chocolateymjarosie
2021-05-01Re-apply patch from ff8924ce16e58f to dev manualAleksey Tsalolikhin
2021-05-01Remove decimal number text from v1.6 manualAleksey Tsalolikhin
2021-05-01Add large file support for 32-bit systems to fix issue 2167Ciaran McNamara
2020-12-19Clean up compile warnings on macOSWilliam Langford
2020-12-19Use AX_PTHREAD to properly detect pthread and flagsWilliam Langford
2020-12-18Fix #2197 extended regex pattern exampleAlexandre Jasmin
2020-06-08Add some missing code quoting to the manualMaximilian Roos
2020-05-26Reduce allocation on string multiplicationitchyny
2020-05-26Fix multiple string multiplicationitchyny
2020-05-26Fix error handling in strftimeitchyny
2020-03-03Makefile: prepend srcdir to jq.1.prebuilt to fix out of source compilationChristopher Degawa
2020-03-02Rework pipenv requirement to be more relaxedWilliam Langford
Keep a cached copy of the man tests that we can use when no manpage changes are made. This allows automated systems that might not have easy access to a pipenv to build and run tests.
2020-03-02Minor fixes to website generationWilliam Langford
2020-03-02Change Homebrew version in docs to 1.6Gustav
2020-03-02compatibiltiy->compatibilityAlanscut
2020-01-14fix typosAlanscut
2020-01-10remove unused conditional branchYoichi Nakayama
It has no effect after the change c4524da. Bug reported by the clang static analyzer. Description: Value stored to 'value' is never read File: jq/src/util.c Line: 439
2020-01-07Add information on how to install on OS X with MacPortsBernard Niset
2020-01-07docs: --indent value has maximum of 7, not 8William Chargin
Test Plan: To verify that this is in fact the behavior: ``` $ jq --indent 7 -n '[1]' [ 1 ] $ jq --indent 8 -n '[1]' jq: --indent takes a number between -1 and 7 Use jq --help for help with command-line options, or see the jq manpage, or online docs at https://stedolan.github.io/jq ``` This patch was generated by running `git grep "no more than"` and fixing up appropriate results. wchargin-branch: docs-fix-indent-bounds
2020-01-03outputing -> outputtingAlanscut
2020-01-02Update other manual and source to use ;37David Biesack