Skip to content

Commit a86972b

Browse files
committed
fix: resolver bug with injected jars
Signed-off-by: Sam Gammon <[email protected]>
1 parent cf670a8 commit a86972b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/builder/src/main/kotlin/elide/tooling/jvm/resolver/MavenAetherResolver.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,10 @@ public class MavenAetherResolver internal constructor (
610610
if (pkg in packageArtifacts) {
611611
// do we already have this at the same version?
612612
val existing = requireNotNull(packageArtifacts[pkg])
613-
if (existing.artifact.file == artifact.file || existing is ResolvedJarArtifact) {
613+
if (
614+
existing.artifact.file == artifact.file ||
615+
existing is ResolvedJarArtifact ||
616+
existing is InjectedJarArtifact) {
614617
return@forEach // we already have this
615618
}
616619
error(

0 commit comments

Comments
 (0)