Skip to content
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

fix: [OSM-797] Remove runtime.* natives from depGraph #194

Merged
merged 3 commits into from
Nov 19, 2023

Conversation

dotkas
Copy link
Contributor

@dotkas dotkas commented Nov 17, 2023

They are very noisy and not particularly useful.

For our case, we are already creating the correct dependencies and their respective runtime version numbers based of our runtime resolution logic. So a dependency will already be System.Net.Http@8.0.0 if running on .NET 8, thus removing the need for a runtime.native.System.Net.Http@8.0.0 as well. From our investigation these runtime native dependencies are causing noise for the customers and are not of interested.

Changes:

  • Added test to reproduce the issue
  • Fixed the issue in the v2 parser
  • Updated depGraph fixtures that are now no longer containing the runtime.* dependencies

@dotkas dotkas requested a review from a team as a code owner November 17, 2023 11:01
@dotkas dotkas force-pushed the dotkas/OSM-797/remove-runtime-natives-from-depgraph branch from 79fb75e to 9c8a9c1 Compare November 17, 2023 11:14
@dotkas dotkas enabled auto-merge (squash) November 17, 2023 11:34
Comment on lines -182 to -191

// Ignore packages with specific prefixes, which for one reason or the other are no interesting and pollutes the graph.
if (
FILTERED_DEPENDENCY_PREFIX.some((prefix) =>
nameWithVersion.startsWith(prefix),
)
) {
return acc;
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only handled top level deps.

@dotkas dotkas force-pushed the dotkas/OSM-797/remove-runtime-natives-from-depgraph branch 4 times, most recently from 77da96b to 7a1eab3 Compare November 17, 2023 12:53
@dotkas dotkas force-pushed the dotkas/OSM-797/remove-runtime-natives-from-depgraph branch from 7a1eab3 to 3fcd498 Compare November 17, 2023 13:13
@dotkas dotkas merged commit d5f31e3 into main Nov 19, 2023
@dotkas dotkas deleted the dotkas/OSM-797/remove-runtime-natives-from-depgraph branch November 19, 2023 08:31
@snyksec
Copy link

snyksec commented Nov 21, 2023

🎉 This PR is included in version 2.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@dotkas dotkas mentioned this pull request Nov 22, 2023
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants