dotnet / source-build

A repository to track efforts to produce a source tarball of the .NET Core SDK and all its components
MIT License
266 stars 132 forks source link

Pass -productBuild switch from the VMR orchestrator to the repos instead of /p:DotNetBuildRepo=true #4337

Open ViktorHofer opened 6 months ago

ViktorHofer commented 6 months ago

tools.ps1/sh might need to condition on whether the build is a product build. Tools.ps1/sh need to parse the $properties string array today which isn't great as not all repos set that. We should pass the -productBuild switch in when building the repos and then remove these code paths:

mmitche commented 6 months ago

This is a good idea, though It will be necessary to implement this switch in any repo that has its own build entry point scripts:

ViktorHofer commented 6 months ago

AFAIK only in the repos that don't forward switches to the Arcade build scripts. I.e. runtime just invokes eng/common/build.ps1/sh underneath and the switch should automatically be respected. AspNetCore doesn't do that and I assume they will need to react.