Skip to content

Commit

Permalink
Clarify comment and remove TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
bigdaz committed Nov 6, 2023
1 parent 03dc2f1 commit fd87c7a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,9 @@ abstract class DependencyExtractor :
}
val projectIdentityPath = (rootComponent.id as? DefaultProjectComponentIdentifier)?.identityPath?.path

// TODO: At this point, any resolution not bound to a particular project will be assigned to the root "build :"
// At this point, any resolution not bound to a particular project will be assigned to the root "build :"
// This is because `details.buildPath` is always ':', which isn't correct in a composite build.
// This is inconsequential for GitHub Dependency Graph, since all dependencies are mapped to a single manifest.
// It is possible to do better. By tracking the current build operation context, we can assign more precisely.
// See the Gradle Enterprise Build Scan Plugin: `ConfigurationResolutionCapturer_5_0`
val rootPath = projectIdentityPath ?: details.buildPath
Expand Down

0 comments on commit fd87c7a

Please sign in to comment.