Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify SB bootstrap package logic #46575

Merged
merged 3 commits into from
Feb 7, 2025

Conversation

MichaelSimons
Copy link
Member

@MichaelSimons MichaelSimons commented Feb 5, 2025

Fixes dotnet/source-build#3631

With the UB work, I propose refactoring the buildBootstrapPreviouslySB.csproj to make use of the PortableRid property to:

  1. Simplify the msbuild logic by utilizing the PortableRid property.
  2. Only download the packages for the current RID.
  3. Surface a rid option in the prep script for advanced scenarios (e.g. target a different rid)

@MichaelSimons MichaelSimons marked this pull request as ready for review February 6, 2025 22:14
@MichaelSimons MichaelSimons requested review from a team as code owners February 6, 2025 22:14
@MichaelSimons MichaelSimons requested review from mthalman and removed request for a team February 6, 2025 22:14
@MichaelSimons
Copy link
Member Author

@mthalman - I refactored a fair amount vs the initial draft. I think utilizing the PortableRid property with the existing pattern is best to ensure correctness as packages are added/removed.

@MichaelSimons MichaelSimons merged commit cfe99e0 into dotnet:main Feb 7, 2025
38 checks passed
@MichaelSimons MichaelSimons deleted the sb-bootstrap-packages branch February 7, 2025 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prep bootstrap logic should only pull packages for current rid by default
2 participants