Skip to content

Build the wrappers the tree carries rather than regenerating them - #18

Merged
estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:fix/build-the-committed-wrappers
Sep 1, 2026
Merged

Build the wrappers the tree carries rather than regenerating them#18
estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:fix/build-the-committed-wrappers

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

The image regenerated the wrappers on the way to compiling them, which needs a
catalog. The catalog is derived from MobilityDB rather than committed, so it is
not in the tree the build context carries, and npm run generate stops on the
file it cannot find. The workflow does not meet this because it stages a derived
catalog before generating; docker build from a clean checkout has no such step.

So the image takes the committed wrappers instead. That is also the question this
build is worth asking: those wrappers are what a consumer of the published
package compiles, and whether they still build against the MEOS they are linked
to is decided here or nowhere, since regenerating first overwrites the evidence.

Node goes with the generate step, its only use in this stage, and bindings.c
comes out of .dockerignore because the image now consumes it rather than
produces it.

The image regenerated the wrappers on the way to compiling them, which needs a
catalog. The catalog is derived from MobilityDB rather than committed, so it is
not in the tree the build context carries, and `npm run generate` stops on the
file it cannot find. The workflow does not meet this because it stages a derived
catalog before generating; `docker build` from a clean checkout has no such step.

So the image takes the committed wrappers instead. That is also the question this
build is worth asking: those wrappers are what a consumer of the published
package compiles, and whether they still build against the MEOS they are linked
to is decided here or nowhere, since regenerating first overwrites the evidence.

Node goes with the generate step, its only use in this stage, and `bindings.c`
comes out of `.dockerignore` because the image now consumes it rather than
produces it.
@estebanzimanyi
estebanzimanyi merged commit 069bb7c into MobilityDB:main Sep 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant