-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Enable rollforward for inbuild variant of crossgen2 #109265
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
Conversation
Fixes failures in source-build in dotnet/sdk#43015. Same fix was applied to cdac tool in dotnet#108946
|
CI didn't seem to run so closing and reopening. As I wrote in #108946 (comment), I don't think this is the last managed tool that we need to run during the build. I don't know how many we have. But we can keep adding rollforwards to discover more if there's pushback to the environment variable. |
|
I think we can just define this property here https://github.com/dotnet/sdk/blob/4a56ead8a89bc74b82f1d7c80507d95d161c1872/src/SourceBuild/content/repo-projects/runtime.proj#L17
I agree with @MichalStrehovsky that defining it broadly (e.g. at runtime.proj level) shouldn't have any risk. See https://learn.microsoft.com/dotnet/core/versions/selection#control-roll-forward-behavior (emphasis mine)
So if we are using ./build.sh (our only supported entrypoint to build on unix), which calls dotnet.sh, which checks "do we have the requested SDK, if not, download", that small chance that we may pick up the wrong/newer SDK, disappears. |
|
Using Proper solution would be to set |
I thought these local RollForwards were just temporary to unblock the SDK build. It felt easier to just do an environment variable and delete it later instead of adding local RollForwards that we're going to forget to revert. But I see SDK might have a different plan now so it might not be needed. |
|
Filed #109329 to avoid the hardcoded value alltogether. |
|
Superseded by #109331 |
Fixes failures in source-build in dotnet/sdk#43015. Same fix was applied to cdac tool in #108946