You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Release build inputs for libpg-query 17.7.4 WASM provenance #170
I am documenting source-to-WASM provenance for libpg-query 17.7.4; this is not a bug or security allegation. npm metadata identifies wrapper commit dc6f90d. At that commit, versions/17/package.json names libpgQueryTag 17-6.1.0, while the Makefile clones constructive-io/libpg_query at 17-constructive and the Docker command uses an unpinned emscripten/emsdk image.
Could you provide the immutable C-source commit, exact Emscripten SDK/image digest and build environment/command that produced the 17.7.4 WASM and JS loaders, or a release-specific build-provenance statement linking those inputs to the npm artifact? Does the no-Docker 3.1.59 workflow describe this release's build, or a different target? An existing public manifest or reference would be sufficient; no new build or release is requested.
Thanks for asking. Here are the inputs that produced libpg-query@17.7.4:
Wrapper:constructive-io/libpg-query-node @ dc6f90d41ba4d383df859e8638dfe240abf16660 (the npm gitHead), built in versions/17.
C source:constructive-io/libpg_query, branch 17-constructive @ c7fb07ad0b1910c72d28d445e0904e7a738f71c8. The libpgQueryTag: 17-6.1.0 in that commit's package.json was stale metadata; the Makefile's 17-constructive clone is what was built.
Toolchain:emscripten/emsdk:6.0.3, via docker run --rm -v $(pwd):/src -u $(id -u):$(id -g) emscripten/emsdk:6.0.3 emmake make build.
Outputs: rebuilding from those inputs gives files byte-identical to the npm tarball:
The no-Docker emsdk 3.1.59 workflow is a separate, stale v18-only build and did not produce this release.
As of #174, each versions/<n>/package.json pins libpgQueryRepo, libpgQueryTag and libpgQueryCommit in x-publish, and the build uses exactly those. Published packages also record x-publish.wasmSha256. Starting with today's releases (13.8.0–18.2.0), npm view libpg-query@<version> x-publish gives you everything needed to rebuild and compare. For example, libpg-query@17.8.0 records fork commit 1ade880fd1bbc6e89c33ea2424ddc366c41c1408 and the WASM hash above.
Activity
Merge pull request #174 from constructive-io/fix/170-pin-build-inputs
pyramation commentedon Oct 24, 2026
Thanks for asking. Here are the inputs that produced
libpg-query@17.7.4:constructive-io/libpg-query-node@dc6f90d41ba4d383df859e8638dfe240abf16660(the npmgitHead), built inversions/17.constructive-io/libpg_query, branch17-constructive@c7fb07ad0b1910c72d28d445e0904e7a738f71c8. ThelibpgQueryTag: 17-6.1.0in that commit's package.json was stale metadata; the Makefile's17-constructiveclone is what was built.emscripten/emsdk:6.0.3, viadocker run --rm -v $(pwd):/src -u $(id -u):$(id -g) emscripten/emsdk:6.0.3 emmake make build.wasm/libpg-query.wasm06fbfc24bcc98298770019a0bc4b715726a6b8fdbf1fcc1a4476a77512b000acwasm/libpg-query.jsb6c1a60cfe748dfc359172c409dbd4cb37e2114e4135271305b74c01e235683dAs of #174, each
versions/<n>/package.jsonpinslibpgQueryRepo,libpgQueryTagandlibpgQueryCommitinx-publish, and the build uses exactly those. Published packages also recordx-publish.wasmSha256. Starting with today's releases (13.8.0–18.2.0),npm view libpg-query@<version> x-publishgives you everything needed to rebuild and compare. For example,libpg-query@17.8.0records fork commit1ade880fd1bbc6e89c33ea2424ddc366c41c1408and the WASM hash above.