Skip to content

Fix repro-build fetch and dstack-mr cargo#74

Open
kvinwang wants to merge 2 commits into
mainfrom
fix/docker-compose-buildkit-fetch
Open

Fix repro-build fetch and dstack-mr cargo#74
kvinwang wants to merge 2 commits into
mainfrom
fix/docker-compose-buildkit-fetch

Conversation

@kvinwang

@kvinwang kvinwang commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • bump meta-virtualization to include a docker-compose fetch fix
  • fetch github.com/moby/buildkit Go modules via git in hybrid mode instead of proxy.golang.org
  • install Rust 1.92 via rustup in the reproducible-build Docker image so post-bitbake mkimage.sh can build dstack-mr
  • bump the dstack submodule to the SEV-SNP branch containing dstack-mr sev-os-image-hash

Testing

  • git -C meta-virtualization diff --check
  • validated hybrid module cache data parses as JSON and contains buildkit v0.26.2/v0.27.1
  • git ls-remote https://github.com/moby/buildkit.git refs/tags/v0.26.2^{} refs/tags/v0.27.1^{}
  • docker build --platform linux/amd64 -t dstack-build-rustup-test -f repro-build/Dockerfile.repro repro-build/.dummy
  • docker run --rm --userns=host --user $(id -u):$(id -g) dstack-build-rustup-test bash -lc 'cargo --version; rustc --version'
  • docker run --rm --userns=host --user $(id -u):$(id -g) -v /home/kvin/src/meta-dstack:/meta-dstack -w /meta-dstack/dstack dstack-build-rustup-test bash -lc 'cargo build --release -p dstack-mr --target-dir /tmp/dstack-mr-target && /tmp/dstack-mr-target/release/dstack-mr --help'

Copilot AI review requested due to automatic review settings June 23, 2026 13:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the meta-virtualization layer revision to pick up a fix for docker-compose builds where fetching github.com/moby/buildkit Go modules via proxy.golang.org can lead to do_fetch timeouts/failures in repro-build contexts. The intended outcome is more reliable module fetching by switching those BuildKit module downloads to a git-based approach (hybrid mode).

Changes:

  • Bump the meta-virtualization submodule to a newer commit containing the docker-compose BuildKit fetch fix.
  • Adjust BuildKit Go module fetching behavior for docker-compose to use git/hybrid mode instead of proxy.golang.org.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kvinwang kvinwang changed the title meta-virtualization: fix docker-compose buildkit fetch Fix repro-build fetch and dstack-mr packaging Jun 23, 2026
@kvinwang kvinwang force-pushed the fix/docker-compose-buildkit-fetch branch from 0000489 to 7d47fad Compare June 23, 2026 15:05
@kvinwang kvinwang changed the title Fix repro-build fetch and dstack-mr packaging Fix repro-build fetch and dstack-mr cargo Jun 23, 2026
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.

2 participants