MCPcopy Create free account
hub / github.com/cortexproject/cortex / listDeps

Method listDeps

pkg/util/modules/modules.go:164–170  ·  view source on GitHub ↗

listDeps recursively gets a list of dependencies for a passed moduleName

(mod string)

Source from the content-addressed store, hash-verified

162
163// listDeps recursively gets a list of dependencies for a passed moduleName
164func (m *Manager) listDeps(mod string) []string {
165 deps := m.modules[mod].deps
166 for _, d := range m.modules[mod].deps {
167 deps = append(deps, m.listDeps(d)...)
168 }
169 return deps
170}
171
172// orderedDeps gets a list of all dependencies ordered so that items are always after any of their dependencies.
173func (m *Manager) orderedDeps(mod string) []string {

Callers 2

orderedDepsMethod · 0.95
DependenciesForModuleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected