Skip to content

Commit

Permalink
Merge pull request #130 from wireapp/mangoiv/nixpkgs-and-hackage
Browse files Browse the repository at this point in the history
[feat] add nixpkgs and hackage to PackageURL
  • Loading branch information
stevespringett authored Mar 12, 2024
2 parents aab35a7 + 73b2f51 commit a7c1a9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/github/packageurl/PackageURL.java
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,8 @@ public static class StandardTypes {
public static final String NUGET = "nuget";
public static final String PYPI = "pypi";
public static final String RPM = "rpm";
public static final String NIXPKGS = "nixpkgs";
public static final String HACKAGE = "hackage";
}

}
2 changes: 2 additions & 0 deletions src/test/java/com/github/packageurl/PackageURLTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ public void testStandardTypes() {
Assert.assertEquals(PackageURL.StandardTypes.NUGET, "nuget");
Assert.assertEquals(PackageURL.StandardTypes.PYPI, "pypi");
Assert.assertEquals(PackageURL.StandardTypes.RPM, "rpm");
Assert.assertEquals(PackageURL.StandardTypes.NIXPKGS, "nixpkgs");
Assert.assertEquals(PackageURL.StandardTypes.HACKAGE, "hackage");
}

@Test
Expand Down

0 comments on commit a7c1a9c

Please sign in to comment.