fix(oci): copy .cargo/config.toml so the image build resolves the mcp-web registry #128
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/MCPWEB-1-oci-cargo-config"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Copy
.cargo/config.tomlinto the OCI build context so thepandoras-box-cargoregistry alias resolves during the image build.Why
After PR #127 switched
youtrack-mcpto the registry-hostedmcp-webdep, the image build fails at the dependency-priming step:The OCI Dockerfiles copy only the workspace manifests before the priming
cargo build(for layer caching), and.cargo/config.toml(which defines the alias) was never copied in.just pre-commitdid not catch it: its docker mode mounts the whole repo, so the config was present there.This fix belongs with PR #127 but landed too late: #127 was already merged and its branch auto-deleted, so my follow-up push resurrected a stray branch instead of updating the PR. This is that fix, re-based cleanly onto current main.
Change
COPY .cargo/config.toml ./.cargo/config.tomlright after the manifests in bothoci-build/Dockerfileandoci-build/Dockerfile.windows(the Windows one had the same latent bug), before the first cargo invocation..dockerignoredoes not exclude.cargo.Verification
just check-docker(the exact failing build) builds the builder stage clean - the priming step runsUpdating pandoras-box-cargo index->Finished release profile- and theyoutrack-cli:checkimage exports.#MCPWEB-1