Skip to content

Commit

Permalink
docs(analyzer): Promote a comment to be a function doc
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Viernau <[email protected]>
  • Loading branch information
fviernau committed Oct 20, 2023
1 parent 0b495bc commit a2dbdde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions analyzer/src/main/kotlin/managers/GoMod.kt
Original file line number Diff line number Diff line change
Expand Up @@ -269,13 +269,13 @@ class GoMod(

/**
* Return the subset of the modules in [graph] required for building and testing the main module. So, test
* dependencies of dependencies are filtered out.
* dependencies of dependencies are filtered out. The [GoModule]s in [Graph] must not have the replace directive
* applied.
*/
private fun getVendorModules(graph: Graph<GoModule>, projectDir: File, mainModuleName: String): Set<GoModule> {
val vendorModuleNames = mutableSetOf(mainModuleName)

graph.nodes.chunked(WHY_CHUNK_SIZE).forEach { ids ->
// Use the names of replaced modules, because `go mod why` returns only results for those.
val moduleNames = ids.map { it.name }.toTypedArray()
// Use the ´-m´ switch to use module names because the graph also uses module names, not package names.
// This fixes the accidental dropping of some modules.
Expand Down

0 comments on commit a2dbdde

Please sign in to comment.