Skip to content

Conversation

@baronfel
Copy link
Member

@baronfel baronfel commented Jun 27, 2025

Fixes #49586 by making sure that the Target that sets the conditions for the execution args to be computed is called in every case where ComputeContainerConfig might be called standalone.

Copilot AI review requested due to automatic review settings June 27, 2025 22:48
@baronfel baronfel requested a review from a team as a code owner June 27, 2025 22:48
Copy link
Contributor

Copilot AI left a comment

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 fixes the target dependency ordering to ensure container RIDness is correctly established before computing the container configuration. The changes remove the redundant _IsSingleRIDBuild property from tests and update target dependencies in the Microsoft.NET.Build.Containers.targets file.

  • Removed the assignment of "_IsSingleRIDBuild" from test targets.
  • Updated target dependencies by inserting _ContainerEstablishRIDNess in ComputeContainerConfig and related targets.
  • Reordered the publish target dependencies to align with the new ordering requirement.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
test/Microsoft.NET.Build.Containers.IntegrationTests/TargetsTests.cs Removed redundant property to reflect new dependency ordering.
src/Containers/packaging/build/Microsoft.NET.Build.Containers.targets Updated target dependencies to ensure proper ordering for establishing RIDness.

@github-actions github-actions bot added the Area-Containers Related to dotnet SDK containers functionality label Jun 27, 2025
@baronfel baronfel force-pushed the fix-container-metadata-target-dependencies branch from 9b4dd38 to f149378 Compare June 28, 2025 00:26
@baronfel baronfel force-pushed the fix-container-metadata-target-dependencies branch from f149378 to b9403e6 Compare July 7, 2025 21:57
@baronfel baronfel enabled auto-merge (squash) July 7, 2025 21:58
@baronfel baronfel merged commit 6abcc15 into dotnet:main Jul 7, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Containers Related to dotnet SDK containers functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Containers targets don't ensure that ComputeContainerConfig has all necessary data to compute runtime-specific information

2 participants