Investigate ExcludeFromSourceBuild not working in dotnet/runtime #1825
Labels
area-infra
Source-build infrastructure and reporting
area-patch-removal
Removing patches for contributing repos from source-build
#1820 tried to exclude R2RDump from source-build, but it still got restored and its dependencies were still prebuilts.
I suspect that the new static restore might not be evaluating the projects the same way as they used to, preventing the
ExcludeFromSourceBuild
property from working. I haven't looked very far into it, but I wonder if maybe the problem is that it isn't checkingDotNetBuildFromSource
in the environment and we need to pass it in as a command, sinceRestoreTaskEx
is called something like this (newlines for clarity):It should have access the the env vars, though, so that might be a red herring.
It might just be that
RestoreTaskEx
uses a completely new execution flow and doesn't care when Arcade tries to blank out the usual restore Targets.Perhaps a way around this is to add to
CollectPackageReferences
and remove out all package refs? (I believeRestoreTaskEx
will specifically evaluate this target because it's where a lot of custom refs happen.)The current surefire workaround is to stop using
ExcludeFromSourceBuild
for now and instead make more heavy-handed and perhaps unmergeable patches.Related-seeming issues:
The text was updated successfully, but these errors were encountered: