File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
idea/idea-core/src/org/jetbrains/kotlin/idea/core/script Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -287,8 +287,10 @@ private class ClearableLazyValue<out T : Any>(private val lock: ReentrantReadWri
287287 }
288288}
289289
290+ // TODO: relying on this to compare dependencies seems wrong, doesn't take javaHome and other stuff into account
290291private fun KotlinScriptExternalDependencies.match (other : KotlinScriptExternalDependencies )
291- = classpath.isSamePathListAs(other.classpath) && sources.isSamePathListAs(other.sources)
292+ = classpath.isSamePathListAs(other.classpath) &&
293+ sources.toSet().isSamePathListAs(other.sources.toSet()) // TODO: gradle returns stdlib and reflect sources in unstable order for some reason
292294
293295
294296private fun Iterable<File>.isSamePathListAs (other : Iterable <File >): Boolean =
You can’t perform that action at this time.
0 commit comments