MCPcopy Create free account
hub / github.com/bufbuild/buf / ModuleSetRemoteModules

Function ModuleSetRemoteModules

private/bufpkg/bufmodule/module_set.go:131–136  ·  view source on GitHub ↗

ModuleSetRemoteModules is a convenience function that returns the remote Modules from a ModuleSet.

(moduleSet ModuleSet)

Source from the content-addressed store, hash-verified

129// ModuleSetRemoteModules is a convenience function that returns the remote Modules
130// from a ModuleSet.
131func 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.

Callers 1

ModuleSetRemoteOpaqueIDsFunction · 0.85

Calls 3

FilterMethod · 0.65
ModulesMethod · 0.65
IsLocalMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…