Repository navigation
fix(supergateway): restore tarball-consistent manifest and lockfile - #14140
Merged
Merged
Conversation
Dependabot bumped the vendored manifest/lockfile (sdk 1.32.0, client 2.3.0) past the published 4.2.2 tarball exact pins (sdk 1.30.0, client 2.0.0); the build uses the tarball manifest, so npm ci re-resolves and fails. Restores the pre-bump pair (npmDepsHash returns to sha256-ONHco8zw, the value already on main) and excludes pkgs/supergateway from dependabot npm updates, same as pkgs/grok-cli.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What broke
Building the
amdNixOS configuration from main fails inpkgs/supergateway— first as annpmDepsHashmismatch, and (with the hash pasted from the failure) as anENOTCACHEDinstall failure for@modelcontextprotocol/client/@hono/node-server.Cause
Dependabot's npm updates cover
/pkgs/supergatewayand bumped its vendoredpackage.json+package-lock.json(@modelcontextprotocol/sdk 1.30.0 → 1.32.0, #13437; @modelcontextprotocol/client → 2.3.0; @hono/node-server 1.19.17 → 1.19.19, #13430). But the package builds the published supergateway 4.2.2 tarball, whose own manifest pins sdk1.30.0and client2.0.0exactly. The build copies the vendored lockfile over the tarball's whilenpm civalidates against the tarball's manifest — the bumped lockfile can never satisfy it, so npm re-resolves against the registry and dies in the sandbox.Evidence: with the pre-bump lockfile restored, the fakeHash harvest returns
sha256-ONHco8zw…— exactly thenpmDepsHashalready on main. The original state was fully self-consistent; the bumps were the sole breakage. (A fresh recipe regeneration also fails: it re-resolves@hono/node-serverto 1.19.19 from npmjs, where the original lockfile pins 1.19.17 from the mirror registry the tree was generated against.)Fix
pkgs/supergateway/package.jsonandpackage-lock.jsonto their pre-bump state (the manifest again matches the tarball's exactly — verified field-for-field).default.nixneeds no change: its hash was correct for this lockfile all along.pkgs/supergateway/**from dependabot's npm updates, the same treatmentpkgs/grok-cli/**already has: these vendored lockfiles are generated artifacts of a published tarball's manifest, not a living npm project.Verified: standalone
supergatewaybuild green on the laptop (/nix/store/9ip92maffgy4plcf1id3kjmvvd3llbk0-supergateway-4.2.2). The full-system build + switch outcome is recorded on #12428; the break list is on #14051.{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-24T06:28:41Z", "session_id": null, "lane": null, "host": "htch-runtime", "worktree": null, "model": null, "lane_start_issues": [], "workspace_ref": null, "auth_subject": "archer", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.