Make sure import/export resolution does not bring duplicates (#4037)

Component Groups may add additional modules to compilation. This change ensures that whatever modules result from import/export resolution, they are not duplicate. Not only could that lead to unnecessary compilation but also to multiple reports of the same error which would be confusing to users.
This fixes https://www.pivotaltracker.com/story/show/184189980

# Important Notes
No easy way to write unit tests for this, so skipping that on purpose for now.
This commit is contained in:
Hubert Plociniczak 2023-01-16 13:18:34 +01:00 committed by GitHub
parent 0a6e6237cd
commit 74659301e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -256,7 +256,7 @@ class Compiler(
} else {
modules
}
}
}.distinct
var hasInvalidModuleRelink = false
if (irCachingEnabled) {