Skip to content

Commit

Permalink
chore(analyzer): Remove a too strict assumption in dependency verific…
Browse files Browse the repository at this point in the history
…ation

So far the convention has been that the type of a project's identifier
matches the package manager name. However, with the `GradleInspector`
that convention was lifted as that package manager still creates
"Gradle" type of projects.

Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
  • Loading branch information
sschuberth committed Sep 5, 2024
1 parent fbe3ae8 commit 7c52615
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions analyzer/src/main/kotlin/PackageManagerDependency.kt
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ data class PackageManagerDependency(
"Could not find a project for the definition file '$definitionFile'."
}

require(project.id.type == packageManager) {
"The project '${project.id.toCoordinates()}' from definition file '$definitionFile' uses the wrong " +
"package manager '${project.id.type}', expected is '$packageManager'."
}

requireNotNull(project.scopeNames) {
"The project '${project.id.toCoordinates()}' from definition file '$definitionFile' does not use a " +
"dependency graph."
Expand Down

0 comments on commit 7c52615

Please sign in to comment.