Skip to content

Commit

Permalink
Correctly translate a golang pUrl to a ContentId.
Browse files Browse the repository at this point in the history
  • Loading branch information
waynebeaton committed Apr 19, 2024
1 parent 8d958f8 commit 69f6ef7
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ public IContentId parseId(String value) {
source = "mavencentral";
if ("npm".equals(type))
source = "npmjs";
if ("golang".equals(type)) {
type = "go";
source = "golang";
name = name.replace("/", "%2F");
}

if (group == null)
group = "-";
Expand Down

0 comments on commit 69f6ef7

Please sign in to comment.