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

Update SourceBuild.props #16780

Merged
merged 2 commits into from
Feb 28, 2024
Merged

Conversation

ViktorHofer
Copy link
Member

Contributes to dotnet/source-build#4029

Condition targets that change what to build based on the source-build flags so that when building the repository inside the VMR for unified-build, we build everything and don't bootstrap.

Condition targets that change what to build based on the source-build flags so that when building the repository inside the VMR for unified-build, we build everything and don't bootstrap.
@ViktorHofer ViktorHofer requested a review from a team as a code owner February 28, 2024 07:31
Copy link
Contributor

✅ No release notes required

@vzarytovskii vzarytovskii enabled auto-merge (squash) February 28, 2024 11:47
@vzarytovskii vzarytovskii merged commit 1caaf86 into dotnet:release/dev17.10 Feb 28, 2024
29 checks passed
@ViktorHofer ViktorHofer deleted the patch-1 branch February 28, 2024 13:06
<Target Name="ConfigureInnerBuildArg" BeforeTargets="GetSourceBuildCommandConfiguration">
<Target Name="ConfigureInnerBuildArg"
BeforeTargets="GetSourceBuildCommandConfiguration"
Condition="'$(ArcadeBuildFromSource)' == 'true' or '$(DotNetBuildSourceOnly)' == 'true'">
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this entire props file be conditionally imported based on this condition instead?

Copy link
Member Author

@ViktorHofer ViktorHofer Feb 28, 2024

Choose a reason for hiding this comment

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

You mean SourceBuild.props? No, we always import that, unconditionally. There's no hook today that would allow that: https://github.com/dotnet/arcade/blob/9aa3f2e68b30ac51823dd444e8cb962e058c5699/src/Microsoft.DotNet.Arcade.Sdk/tools/SourceBuild/SourceBuildArcade.targets#L17-L20

I doubt it would be worthwhile to conditionally import this file based on the build mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants