Skip to content

Enable source-build prebuilt detection - #5582

Merged
MichaelSimons merged 11 commits into
dotnet:mainfrom
MichaelSimons:sb-prebuilt-detection
Jan 6, 2023
Merged

MichaelSimons merged 11 commits into
dotnet:mainfrom
MichaelSimons:sb-prebuilt-detection

Conversation

@MichaelSimons

Copy link
Copy Markdown
Member

Related to #5177 and #5519

Problem

source-build prebuilt detection is not enabled. Enabling this will hopefully catch any source-build prebuilts in PR validation and prevent issue like #5519

Solution

Enabled source-build prebuilt detection by removing the "*" entry in https://github.com/dotnet/templating/blob/main/eng/SourceBuildPrebuiltBaseline.xml. I then made the missing Version.Details.xml dependencies to eliminate any reported prebuilts.

I lifted the Microsoft.Extensions.Logging to the most recent versions via the darc dependency flow. This eliminates the need for using source-build ref packages as described in #5177.

@MichaelSimons
MichaelSimons requested a review from a team as a code owner November 8, 2022 19:28
@MichaelSimons

Copy link
Copy Markdown
Member Author

cc @dotnet/source-build-internal, @mmitche, @oleksandr-didyk

Comment thread eng/Version.Details.xml Resolved
Comment thread eng/Package.props Resolved
@mmitche

mmitche commented Nov 10, 2022

Copy link
Copy Markdown
Member

@MichaelSimons Looks like there are real issues with the upgrade of some dependencies

Comment thread eng/SourceBuildPrebuiltBaseline.xml Resolved
Comment thread eng/Package.props
Comment on lines -14 to -16
<PackageReference Update="Microsoft.Extensions.Logging" Condition="'$(MicrosoftExtensionsLoggingVersion)' != ''" Version="$(MicrosoftExtensionsLoggingVersion)" />
<PackageReference Update="Microsoft.Extensions.Logging.Console" Condition="'$(MicrosoftExtensionsLoggingConsoleVersion)' != ''" Version="$(MicrosoftExtensionsLoggingConsoleVersion)" />
<PackageReference Update="Microsoft.Extensions.Logging.Abstractions" Condition="'$(MicrosoftExtensionsLoggingAbstractionsVersion)' != ''" Version="$(MicrosoftExtensionsLoggingAbstractionsVersion)" />

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is it still needed?
iirc, this makes source build to use the versions from the repo which are latest release; same as regular build.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think you are correct. I added these back.

@MichaelSimons
MichaelSimons enabled auto-merge (squash) January 6, 2023 20:57
@MichaelSimons
MichaelSimons merged commit d11f8de into dotnet:main Jan 6, 2023
@MichaelSimons
MichaelSimons deleted the sb-prebuilt-detection branch February 19, 2026 21:13
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.

4 participants