Bind native Rust version to original package metadata #534

Open
erikinkinen wants to merge 2 commits from feature/native-package-version-input into feature/shared-development-source-selection
Owner

The ordinary native service producer now supplies CARGO_PKG_VERSION from its original root package binding and completed Cargo metadata. This fixes Rust sources using env!("CARGO_PKG_VERSION") without selecting a host environment value or claiming a Cargo-backed compilation.

The compiler input retains the same source and metadata owners, checks the selected version before and after each root-library/root-binary invocation, and participates in the artifact identity. Existing compiler environments for other packages and tools are unchanged.

Related workload: #532.

  • Bind and retain the exact root package version.
  • Reject missing, copied, foreign and changed package selections; preserve compiler-error precedence.
  • Exercise all 53 ordinary-service controls and host syntax checks.
  • Build the native SHA2 artifact with the dependent runtime fixes (#535, #537, #540).
  • Demonstrate matching-image guest execution and teardown.
The ordinary native service producer now supplies CARGO_PKG_VERSION from its original root package binding and completed Cargo metadata. This fixes Rust sources using env!("CARGO_PKG_VERSION") without selecting a host environment value or claiming a Cargo-backed compilation. The compiler input retains the same source and metadata owners, checks the selected version before and after each root-library/root-binary invocation, and participates in the artifact identity. Existing compiler environments for other packages and tools are unchanged. Related workload: #532. - [x] Bind and retain the exact root package version. - [x] Reject missing, copied, foreign and changed package selections; preserve compiler-error precedence. - [x] Exercise all 53 ordinary-service controls and host syntax checks. - [x] Build the native SHA2 artifact with the dependent runtime fixes (#535, #537, #540). - [ ] Demonstrate matching-image guest execution and teardown.
fix: Bind native Rust version to original package metadata
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
CI / rust (push) Has been cancelled
CI / host_zero (push) Has been cancelled
CI / host_one (push) Has been cancelled
CI / host_two (push) Has been cancelled
CI / host_three (push) Has been cancelled
CI / integration (push) Has been cancelled
Coreutils provider graph / coreutils (push) Has been cancelled
Markdown / markdown (push) Has been cancelled
ff6311c322
Retain the original root package version through each manual Rust compiler invocation. Select only CARGO_PKG_VERSION from the same completed Cargo metadata and package binding, recheck it around native execution, and include it in the artifact identity without inheriting host environment values.
erikinkinen added this to the Alpha 1 milestone 2026-11-07 19:58:25 +01:00
fix: Keep package compiler input identities independent of checkout paths
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
Markdown / markdown (push) Successful in 10s
CI / rust (push) Successful in 7m25s
Coreutils provider graph / coreutils (push) Successful in 4m35s
CI / host_zero (push) Failing after 16m1s
CI / host_one (push) Failing after 20m5s
CI / host_two (push) Failing after 23m5s
CI / host_three (push) Failing after 20m57s
CI / integration (push) Has been skipped
f840165312
Describe the retained package environment by its declared package and manifest, leaving operation-specific Cargo package IDs in their original owner bindings.
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
Markdown / markdown (push) Successful in 10s
CI / rust (push) Successful in 7m25s
Coreutils provider graph / coreutils (push) Successful in 4m35s
CI / host_zero (push) Failing after 16m1s
CI / host_one (push) Failing after 20m5s
CI / host_two (push) Failing after 23m5s
CI / host_three (push) Failing after 20m57s
CI / integration (push) Has been skipped
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'feature/native-package-version-input:feature/native-package-version-input'
git switch 'feature/native-package-version-input'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'feature/shared-development-source-selection'
git merge --no-ff 'feature/native-package-version-input'
git switch 'feature/native-package-version-input'
git rebase 'feature/shared-development-source-selection'
git switch 'feature/shared-development-source-selection'
git merge --ff-only 'feature/native-package-version-input'
git switch 'feature/native-package-version-input'
git rebase 'feature/shared-development-source-selection'
git switch 'feature/shared-development-source-selection'
git merge --no-ff 'feature/native-package-version-input'
git switch 'feature/shared-development-source-selection'
git merge --squash 'feature/native-package-version-input'
git switch 'feature/shared-development-source-selection'
git merge --ff-only 'feature/native-package-version-input'
git switch 'feature/shared-development-source-selection'
git merge 'feature/native-package-version-input'
git push origin 'feature/shared-development-source-selection'
Sign in to join this conversation.
No description provided.