Skip to content

Commit 2577c0c

Browse files
authored
fix: yarn classic was adding an invalid @ to the version (#146)
## Description **Related issue (if any):** fixes #145 ## Checklist - [x] I have followed this repository's contributing guidelines. - [x] I will adhere to the project's code of conduct. Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
1 parent 10693ba commit 2577c0c

3 files changed

Lines changed: 1955 additions & 1955 deletions

File tree

src/main/java/com/redhat/exhort/providers/YarnClassicProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ private static class NodeMetaData {
138138
this.nodeName = node.get("name").asText();
139139
var versionIdx = nodeName.lastIndexOf("@");
140140
this.name = nodeName.substring(0, versionIdx);
141-
this.version = nodeName.substring(versionIdx);
141+
this.version = nodeName.substring(versionIdx + 1);
142142
this.purl = JavaScriptProvider.toPurl(name, version);
143143
var shadowNode = node.get("shadow");
144144
this.shadow = shadowNode != null && shadowNode.asBoolean();

0 commit comments

Comments
 (0)