Skip to content

Commit bbb7a43

Browse files
committed
Fix concurrency issue with simultaneous resolution
- Synchronize access to List that collects `ResolvedConfiguration` instances
1 parent afac062 commit bbb7a43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/src/main/kotlin/org/gradle/github/dependencygraph/internal/DependencyExtractor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ abstract class DependencyExtractor :
3535
/**
3636
* Map of all resolved configurations by name
3737
*/
38-
private val resolvedConfigurations = mutableListOf<ResolvedConfiguration>()
38+
private val resolvedConfigurations = Collections.synchronizedList(mutableListOf<ResolvedConfiguration>())
3939

4040
/**
4141
* Map of the project identifier to the relative path of the git workspace directory [gitWorkspaceDirectory].

0 commit comments

Comments
 (0)