Skip to content

fix(mc): clone pumpkin source in Docker build after submodule removal#8217

Merged
h0lybyte merged 1 commit intodevfrom
trunk/mc-dockerfile-fix-1773795974
Mar 18, 2026
Merged

fix(mc): clone pumpkin source in Docker build after submodule removal#8217
h0lybyte merged 1 commit intodevfrom
trunk/mc-dockerfile-fix-1773795974

Conversation

@h0lybyte
Copy link
Member

Summary

  • Replace COPY ./apps/mc/pumpkin/... (broken after submodule removal in chore(repo): remove pumpkin and postgres git submodules #8215) with a pumpkin-source stage that git clones KBVE/Pumpkin at pinned commit e749ef61
  • Remove ARG BASE_IMAGE=ghcr.io/kbve/mc-rust-base:latest — inline cargo-chef stages handle dependency caching via BuildKit --mount=type=cache
  • Applied to both Dockerfile and Dockerfile.dev

Changes

  • pumpkin-source stage: alpine/git → shallow clone at PUMPKIN_REF (configurable via build-arg)
  • rust-baseplannerdeps: cargo-chef pattern caches compiled dependencies across builds
  • builder / plugin-builder: COPY --from=pumpkin-source replaces COPY ./apps/mc/pumpkin/

Test plan

  • Verify nx container mc builds locally
  • Verify CI dev docker build passes for MC

Replace COPY from apps/mc/pumpkin/ submodule path with a pumpkin-source
stage that git clones KBVE/Pumpkin at a pinned commit. Inline cargo-chef
stages replace the deleted mc-rust-base image. Fixes CI failure from
submodule removal in #8215.
@github-actions
Copy link
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@h0lybyte h0lybyte merged commit 62c1180 into dev Mar 18, 2026
5 checks passed
@h0lybyte h0lybyte deleted the trunk/mc-dockerfile-fix-1773795974 branch March 18, 2026 01:56
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