diff --git a/plugins/package-managers/stack/src/main/kotlin/Stack.kt b/plugins/package-managers/stack/src/main/kotlin/Stack.kt index 58b1ca1c7c2ec..8bf9a349badf9 100644 --- a/plugins/package-managers/stack/src/main/kotlin/Stack.kt +++ b/plugins/package-managers/stack/src/main/kotlin/Stack.kt @@ -185,9 +185,7 @@ private fun Collection.toScope(scopeName: String, packageForName: Ma return Scope( name = scopeName, - dependencies = single { - it.location?.type == Location.TYPE_PROJECT - }.dependencies.mapTo(mutableSetOf()) { name -> + dependencies = single { it.isProject() }.dependencies.mapTo(mutableSetOf()) { name -> dependencyForName.getValue(name).toPackageReference(dependencyForName, packageForName) } )