Skip to content

Allow release downloads to target forked repos#3

Open
enricoschaaf wants to merge 1 commit intostacked-guest-netfilter-supportfrom
stacked-fork-artifact-overrides
Open

Allow release downloads to target forked repos#3
enricoschaaf wants to merge 1 commit intostacked-guest-netfilter-supportfrom
stacked-fork-artifact-overrides

Conversation

@enricoschaaf
Copy link
Copy Markdown
Collaborator

Summary

This stacks on top of #2 and adds a single artifact-source override path so microsandbox can actually consume release artifacts from a fork instead of silently downloading upstream runtime binaries.

Without this, pointing Cargo at a forked git dependency is not enough:

  • scripts/install.sh still installs from superradcompany/microsandbox
  • crates/microsandbox/build.rs still downloads the prebuilt runtime bundle from superradcompany/microsandbox
  • msb self update still checks upstream releases

What changed

  • introduces MICROSANDBOX_GITHUB_REPO as an owner/repo override
  • uses it in:
    • scripts/install.sh
    • crates/microsandbox/build.rs
    • crates/utils/lib/lib.rs
    • crates/cli/lib/commands/self_cmd.rs

Why this matters

The preceding stacked PR switches the runtime kernel source to your forked libkrunfw. This PR makes the rest of the release download path follow the same fork so builds and installs are consistent.

Validation

  • cargo test --manifest-path /tmp/microsandbox-enrico/crates/utils/Cargo.toml --lib
  • cargo test --manifest-path /tmp/microsandbox-enrico/crates/microsandbox/Cargo.toml --lib
  • cargo check --manifest-path /tmp/microsandbox-enrico/crates/cli/Cargo.toml

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