Skip to content

Content service image: its packages at the lockfile's versions - #701

Merged
adamjohnwright merged 1 commit into
mainfrom
deploy/content-node-lock-versions
Oct 27, 2026
Merged

adamjohnwright merged 1 commit into
mainfrom
deploy/content-node-lock-versions

Conversation

@adamjohnwright

Copy link
Copy Markdown
Contributor

Follow-up to #699, from its review. neo4j-driver's root range (^6.2.0) let the image take the newest 6.x at build time, untested here.

Each package the service imports (express, neo4j-driver) must still be a dependency of the root package.json. It is now installed at the exact version the root package-lock.json resolved for it. If either is missing, the build fails, naming it. I checked with the driver taken out of a copy of the lockfile: Error: neo4j-driver is not in the root lockfile, exit 1.

Built and inspected: the image's package.json pins express 5.3.0 and neo4j-driver 6.2.0, and those are what is installed, the same as beta runs now. Neither root copy is left in the image.

Still floating: the two packages' own dependencies resolve at build time within their ranges, as before and as in the render image.

Preflight passes.

🤖 Generated with Claude Code

From #699's review: neo4j-driver's root range (^6.2.0) let the image take
the newest 6.x at build time, untested here. Each package must still be a
dependency of the root package.json, and is installed at the version the
root lockfile resolved for it; one missing from either fails the build,
naming it. Today that is express 5.3.0 and neo4j-driver 6.2.0, as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adamjohnwright
adamjohnwright merged commit 9ecdf69 into main Oct 27, 2026
8 checks passed
@adamjohnwright
adamjohnwright deleted the deploy/content-node-lock-versions branch October 27, 2026 01:29
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