On Windows, jq could not open files whose paths exceed MAX_PATH (260
characters), even with LongPathsEnabled set, because the executable did
not declare longPathAware in its application manifest.
Embed an application manifest in jq.exe through a resource compiled
with windres, detected by configure for native Windows hosts. The
manifest keeps the asInvoker and supportedOS entries of the MinGW
default manifest it replaces and adds longPathAware. It uses a non-zero
resource language so that the linker drops the default manifest. Add a
PowerShell test that reads a file through a path longer than MAX_PATH
in the Windows CI jobs.
Co-authored-by: BaalEvan <baalevan@outlook.com>
The Pipfile did not specify a Python version, so Dependabot locked
dependencies with its own default Python. This dropped packages needed
only on older Python (e.g. typing-extensions, required by referencing on
Python < 3.13) and broke the manpages job running on Python 3.11.
Pin python_version in the Pipfile and use the same version in CI so the
lockfile matches what CI installs, and relock the dependencies.
The i386 build ran on ubuntu-22.04, which is retired on April 17, 2027,
and ubuntu-24.04 lacks fmod and exp10 in the static i386 libm.
Build on ubuntu-26.04 for every architecture except MIPS, whose cross
toolchains Ubuntu 26.04 no longer ships, and move the decnum, oniguruma
and valgrind workflows too. Most release binaries are now built with
GCC 15 and glibc 2.43, and they remain statically linked.
The macOS jobs failed during the macos-14 brownouts, and the image is
retired on November 2, 2026.
Run them on macos-15 and build with the macos14 target triple instead
of deriving it from uname -r, so the binaries still require macOS 14.0
as in jq 1.8.x rather than following the runner to 15. Recent clang
ignores the version in a darwinNN triple and uses the SDK default.
The NetBSD job failed when installing git on a fresh runner, because the
image ships pcre2-10.48 and the git package needs pcre2>=10.48nb1, and
pkg_add does not update installed dependencies by default.
Pass -uu to pkg_add so it also updates installed dependencies that are
too old. Also drop the PKG_PATH override. netbsd-vm now writes the live
package mirrors for the running release to /etc/pkg_install.conf, so the
override is no longer needed to avoid the image's 9.0 fallback.
Add a BSD workflow with FreeBSD and NetBSD jobs that run the same build
and tests as the linux job, each inside a VM booted under QEMU on an
ubuntu-latest runner. The tests/shtest $NO_COLOR pty checks are now
skipped on NetBSD, as they already are on SunOS.
The date in the .TH line of jq.1.prebuilt changed whenever the manual was
regenerated in a new month, causing merge conflicts between pull requests
that touch the manual, and it did not reflect the release date anyway.
Generate the committed man page without a date.
Stamp the date into jq.1 at build time instead, taking it from the current
commit, or from SOURCE_DATE_EPOCH where that is set, so that release
tarballs and distribution builds still carry one and the behaviour added
in #3514 is kept. Write it in UTC and in ISO 8601 rather than the previous
"%B %Y", for which mandoc reports "cannot parse date, using it verbatim".
The push trigger had no branch filter, so pull requests from branches
in this repository (e.g. Dependabot) ran the workflow twice, once for
push and once for pull_request.
The bundle generated by actions/attest is currently only retrievable
via the GitHub attestations API, which requires authentication.
Uploading it as jq-attestation.json lets downstream consumers
(distro packagers, unauthenticated CI) verify provenance offline.
Previously, the configure script automatically enables Valgrind during
testing when the valgrind command is found. However, running tests with
Valgrind is quite slow, so it is better to disable it by default, and
to enable it only when the user specifies the `--enable-valgrind` flag.
Adding https://github.com/actions/attest-build-provenance to the ci builds so
that the release assets and docker image for the next release tag generate
signed build provenance attestations for workflow artifacts.
* Always build docker image on CI
* Revert "Bump actions/download-artifact from 3 to 4"
This reverts commit 9e2695e117.
* Group Dependabot PRs for official actions
The "macos (arm64)" runner on github does not have nproc.
/Users/runner/work/_temp/f44f0d9f-19eb-4a23-860e-26533d7efdfa.sh: line 10: nproc: command not found