-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Disable TransitiveVersioningPinning for RoslynAnalyzers. #78037
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
|
/backport to main |
|
Started backporting to main: https://github.com/dotnet/roslyn/actions/runs/14322057607 |
|
@JoeRobich this change is insufficient. Directory.Packages.props gets imported after Directory.Build.props and therefore the property gets reassigned back to true. You want to move this into the Directory.Build.targets file. FWIW you can also test this by building the VMR locally or in a Codespace with the changes from this PR: dotnet/sdk#48088 |
|
Should Directory.Packages.props have a Condition="'$(CentralPackageTransitivePinningEnabled)' == ''" check? |
|
That's another option. There are so many ways with msbuild :) |
@ViktorHofer Is there a doc I can reference? |
|
Also, would have been nice to catch this issue during Roslyn's source build leg instead of in the SDK. |
So, roslyn's current source-build job is only an approximation on how the product build will perform. That job will actually go away as it has proven to be not that helpful: dotnet/source-build#5020. Instead, we will add the option to perform a full VMR product build with the repo local changes: dotnet/arcade-services#4539 That validation leg will highlight such issues. The repo owners then decide if they want that pipeline run as part of every PR or as an optional comment-trigger pipeline. cc @jaredpar @MichaelSimons
For the codespace and how to sync PR changes into the VMR: https://github.com/dotnet/sdk/blob/main/.devcontainer/vmr/README.md General instructions on how to build the VMR can be found here: https://github.com/dotnet/dotnet?tab=readme-ov-file#dev-instructions |
Transitive pinning is breaking source-build in SDK insertions. See dotnet/sdk#48088
Changes to MissingRulesDocumentation are automated.