-
Notifications
You must be signed in to change notification settings - Fork 121
Bump packageurl-dotnet from 2.0.0-rc.2 to 2.0.0-rc.3 #1738
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,6 +47,9 @@ public void DebianAndUbuntuAreDebType() | |
|
|
||
| ubuntuComponent.PackageUrl.Type.Should().Be("deb"); | ||
| debianComponent.PackageUrl.Type.Should().Be("deb"); | ||
|
|
||
| ubuntuComponent.PackageUrl.Qualifiers["distro"].Should().Be("ubuntu-18.04"); | ||
| debianComponent.PackageUrl.Qualifiers["distro"].Should().Be("debian-buster"); | ||
| } | ||
|
|
||
| [TestMethod] | ||
|
|
@@ -61,17 +64,29 @@ public void CentOsFedoraAndRHELAreRpmType() | |
| centosComponent.PackageUrl.Type.Should().Be("rpm"); | ||
| fedoraComponent.PackageUrl.Type.Should().Be("rpm"); | ||
| rhelComponent.PackageUrl.Type.Should().Be("rpm"); | ||
|
|
||
| centosComponent.PackageUrl.Qualifiers["distro"].Should().Be("centos-18.04"); | ||
| fedoraComponent.PackageUrl.Qualifiers["distro"].Should().Be("fedora-18.04"); | ||
| rhelComponent.PackageUrl.Qualifiers["distro"].Should().Be("redhat-18.04"); | ||
| } | ||
|
|
||
| [TestMethod] | ||
| public void AlpineAndUnknownDoNotHavePurls() | ||
| public void AlpineIsApkType() | ||
| { | ||
| // Alpine is not yet defined | ||
| // https://github.com/package-url/purl-spec/blame/180c46d266c45aa2bd81a2038af3f78e87bb4a25/README.rst#L711 | ||
| // Alpine uses "apk" purl type | ||
| // https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst#apk | ||
| var alpineComponent = new LinuxComponent("Alpine", "3.13", "bash", "1"); | ||
|
|
||
| alpineComponent.PackageUrl.Type.Should().Be("apk"); | ||
| alpineComponent.PackageUrl.Namespace.Should().Be("alpine"); | ||
| alpineComponent.PackageUrl.Qualifiers["distro"].Should().Be("alpine-3.13"); | ||
| } | ||
|
|
||
| [TestMethod] | ||
| public void UnknownDistroDoesNotHavePurl() | ||
| { | ||
| var unknownLinuxComponent = new LinuxComponent("Linux", "0", "bash", "1'"); | ||
|
|
||
| alpineComponent.PackageUrl.Should().BeNull(); | ||
| unknownLinuxComponent.PackageUrl.Should().BeNull(); | ||
| } | ||
|
|
||
|
|
@@ -88,6 +103,16 @@ public void DistroNamesAreLowerCased() | |
| fedoraComponent.PackageUrl.Namespace.Should().Be("fedora"); | ||
| } | ||
|
|
||
| [TestMethod] | ||
| public void RhelNamespaceIsRedhat() | ||
| { | ||
| // RHEL should use "redhat" as the namespace and distro id, matching Syft conventions | ||
| var rhelComponent = new LinuxComponent("Red Hat Enterprise Linux", "9.0", "bash", "1"); | ||
|
|
||
| rhelComponent.PackageUrl.Namespace.Should().Be("redhat"); | ||
| rhelComponent.PackageUrl.Qualifiers["distro"].Should().Be("redhat-9.0"); | ||
| } | ||
|
Comment on lines
+106
to
+114
|
||
|
|
||
| [TestMethod] | ||
| public void CocoaPodNameShouldSupportPurl() | ||
| { | ||
|
|
||
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.
PR title/description says packageurl-dotnet is bumped to 2.0.0-rc.3, but
Directory.Packages.propsin this change set still pinspackageurl-dotnetto 2.0.0-rc.2. Either update the central package version to rc.3 or adjust the PR metadata to match what’s actually changing.This issue also appears on line 106 of the same file.