Skip to content

Commit

Permalink
fix(artifacts): use normalized artifact versions (#2004)
Browse files Browse the repository at this point in the history
Use normalized version when comparing latest available artifact and the current artifact from the DB.
  • Loading branch information
dmart authored Jan 7, 2022
1 parent d4b5a18 commit 8941cc7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class ArtifactListener(
log.debug("Latest available versions of $artifact: ${latestAvailableVersions.map { it.version }}")

val newVersions = latestAvailableVersions
.filterNot { currentVersions.contains(it.version) }
.filterNot { currentVersions.contains(it.normalized().version) }
.filter { artifactSupplier.shouldProcessArtifact(it) }
if (newVersions.isNotEmpty()) {
log.debug("$artifact has a missing version(s) ${newVersions.map { it.version }}, persisting.")
Expand Down

0 comments on commit 8941cc7

Please sign in to comment.