fix(bundler): include workspace node_modules symlinks in runtime image#25
Merged
ggonzalez94 merged 2 commits intomainfrom Apr 14, 2026
Merged
fix(bundler): include workspace node_modules symlinks in runtime image#25ggonzalez94 merged 2 commits intomainfrom
ggonzalez94 merged 2 commits intomainfrom
Conversation
Redeploys the full Servo contract stack on Taiko Alethia after the Pimlico SingletonPaymasterV7 migration and the compiler/dependency refresh. The previous TaikoUsdcPaymaster deployment has been swept (EntryPoint deposit and pooled USDC returned to treasury) and is retired. - ServoPaymaster → 0x15a5451FeDc348312F1B59F7D930D494B7A73393 (seeded w/ 0.005 ETH) - ServoAccountFactory → 0x27A8169f8C837D66497b4FD1002ef178F88cc1D6 (new bytecode, new CREATE2 space) Updates version, CHANGELOG, deployment docs, README, servo-agent skill/evals, and the bundler v0.7 factory test fixture to point at the new addresses. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
v0.3.0 made @agent-paymaster/shared depend on viem at runtime (previously only types). The bundler Dockerfile only copied /app/node_modules and packages/bundler/node_modules to the runtime stage, so the packages/shared/node_modules/viem symlink was missing. On startup Node.js resolved viem from shared/dist/index.js, failed with ERR_MODULE_NOT_FOUND, and Railway's health check timed out. Switch the runtime stage to the simpler COPY --from=deps /app ./ pattern (same as the API Dockerfile) so every workspace package's hoisted symlinks are preserved automatically. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Summary
v0.3.0 release deploy failed because
@agent-paymaster/sharednow depends onviemat runtime (added in #23), butDockerfile.bundleronly copied/app/node_modulesand/app/packages/bundler/node_modulesto the runtime stage. Thepackages/shared/node_modules/viemsymlink was missing, so Node.js crashed on startup with `ERR_MODULE_NOT_FOUND: Cannot find package 'viem' imported from /app/packages/shared/dist/index.js` and Railway's health check timed out.Switch the runtime stage to `COPY --from=deps /app ./` (same pattern the API Dockerfile already uses) so every workspace package's hoisted symlink tree is preserved automatically.
Test plan
packages/shared/package.jsondeclaresviemas a runtime dependency andpackages/shared/node_modules/viemresolves only via that workspace's symlink/healthreportsok🤖 Generated with Claude Code