Skip to content

Update packageurl-dotnet to 2.0.0#1799

Merged
grvillic merged 1 commit intomainfrom
jamie/rename-packageurl-casing
Apr 24, 2026
Merged

Update packageurl-dotnet to 2.0.0#1799
grvillic merged 1 commit intomainfrom
jamie/rename-packageurl-casing

Conversation

@JamieMagee
Copy link
Copy Markdown
Member

Bumps packageurl-dotnet from 2.0.0-rc.3 to 2.0.0. The stable release renamed the PackageUrl class to PackageURL, so this PR updates all references across the TypedComponent classes, docs, and tests to match.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the repo to consume the stable packageurl-dotnet 2.0.0 release and aligns the contracts/tests/docs to the library’s PackageUrlPackageURL type rename.

Changes:

  • Bump packageurl-dotnet from 2.0.0-rc.3 to 2.0.0.
  • Update TypedComponent.PackageUrl and all TypedComponent overrides to return PackageURL.
  • Update Swift component unit tests and detector authoring docs to reference PackageURL.
Show a summary per file
File Description
test/Microsoft.ComponentDetection.Detectors.Tests/SwiftComponentTests.cs Updates expected PURL construction to use PackageURL in Swift tests.
src/Microsoft.ComponentDetection.Contracts/TypedComponent/TypedComponent.cs Changes the contract surface PackageUrl property type to PackageURL.
src/Microsoft.ComponentDetection.Contracts/TypedComponent/SwiftComponent.cs Updates Swift TypedComponent to construct PackageURL.
src/Microsoft.ComponentDetection.Contracts/TypedComponent/VcpkgComponent.cs Updates Vcpkg TypedComponent to construct/return PackageURL.
src/Microsoft.ComponentDetection.Contracts/TypedComponent/RubyGemsComponent.cs Updates RubyGems TypedComponent to construct/return PackageURL.
src/Microsoft.ComponentDetection.Contracts/TypedComponent/PodComponent.cs Updates Pod TypedComponent to construct/return PackageURL.
src/Microsoft.ComponentDetection.Contracts/TypedComponent/PipComponent.cs Updates Pip TypedComponent to construct/return PackageURL.
src/Microsoft.ComponentDetection.Contracts/TypedComponent/NugetComponent.cs Updates NuGet TypedComponent to construct/return PackageURL.
src/Microsoft.ComponentDetection.Contracts/TypedComponent/NpmComponent.cs Updates Npm TypedComponent to construct/return PackageURL.
src/Microsoft.ComponentDetection.Contracts/TypedComponent/MavenComponent.cs Updates Maven TypedComponent to construct/return PackageURL.
src/Microsoft.ComponentDetection.Contracts/TypedComponent/LinuxComponent.cs Updates Linux TypedComponent to construct/return PackageURL.
src/Microsoft.ComponentDetection.Contracts/TypedComponent/GoComponent.cs Updates Go TypedComponent to construct/return PackageURL.
src/Microsoft.ComponentDetection.Contracts/TypedComponent/CppSdkComponent.cs Updates CppSdk TypedComponent to construct/return PackageURL.
src/Microsoft.ComponentDetection.Contracts/TypedComponent/ConanComponent.cs Updates Conan TypedComponent to construct/return PackageURL.
src/Microsoft.ComponentDetection.Contracts/TypedComponent/CargoComponent.cs Updates Cargo TypedComponent to construct/return PackageURL.
docs/creating-a-new-detector.md Updates the sample TypedComponent to use PackageURL.
Directory.Packages.props Bumps packageurl-dotnet package version to 2.0.0.

Copilot's findings

  • Files reviewed: 17/17 changed files
  • Comments generated: 1

Comment thread docs/creating-a-new-detector.md
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.0%. Comparing base (7ce401b) to head (74a34bd).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@     Coverage Diff      @@
##   main   #1799   +/-   ##
============================
============================

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@grvillic grvillic merged commit c49cd23 into main Apr 24, 2026
19 of 20 checks passed
@grvillic grvillic deleted the jamie/rename-packageurl-casing branch April 24, 2026 20:44
@github-actions
Copy link
Copy Markdown

👋 Hi! It looks like you modified some files in the Detectors folder.
You may need to bump the detector versions if any of the following scenarios apply:

  • The detector detects more or fewer components than before
  • The detector generates different parent/child graph relationships than before
  • The detector generates different devDependencies values than before

If none of the above scenarios apply, feel free to ignore this comment 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants