Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump transitive System.Text.Json dependency to fix .NET 9 build warnings
The previously resolved 8.0.0 is vulnerable according to GHSA-hh2w-p6rv-4g7w, so pin it to 9.0.0 for now to fix build warnings (and whatever vulnerability that is). Once Silk.NET publishes a 2.22.1+ this can theoretically be removed.
- Loading branch information
cf464d4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I expect this change is harmless, but we shouldn't be doing this to hide such a warning. Do you have both .NET 8 and .NET 9 installed? I would have thought
/global.json
would determine which is used. (Or maybe that's exactly the problem.)cf464d4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only have the .NET 9 SDK installed and am building with that. Even installing the .NET 8 SDK will not cause the solution to be built with it, because the
global.json
specifies a rollForward policy oflatestMajor
, which is documented asUses the highest installed .NET SDK with a version that's greater than or equal to the specified value. If not found, fail.
I disagree that we "shouldn't be doing this to hide such a warning", the warning is valid and just because it's not shown with the .NET 8 SDK doesn't mean the problem magically disappears. I expect lots of packages to bump their dependencies now that the .NET 9 SDK shows warnings for vulnerable ones on build.