ModuleSetRemoteModules is a convenience function that returns the remote Modules from a ModuleSet.
(moduleSet ModuleSet)
| 129 | // ModuleSetRemoteModules is a convenience function that returns the remote Modules |
| 130 | // from a ModuleSet. |
| 131 | func ModuleSetRemoteModules(moduleSet ModuleSet) []Module { |
| 132 | return xslices.Filter( |
| 133 | moduleSet.Modules(), |
| 134 | func(module Module) bool { return !module.IsLocal() }, |
| 135 | ) |
| 136 | } |
| 137 | |
| 138 | // ModuleSetTargetLocalModulesAndTransitiveLocalDeps is a convenience function that returns |
| 139 | // the targeted local Modules of the ModuleSet, and their transitive local dependencies. |
no test coverage detected
searching dependent graphs…