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

Function ModuleSetLocalModules

private/bufpkg/bufmodule/module_set.go:122–127  ·  view source on GitHub ↗

ModuleSetLocalModules is a convenience function that returns the local Modules from a ModuleSet.

(moduleSet ModuleSet)

Source from the content-addressed store, hash-verified

120// ModuleSetLocalModules is a convenience function that returns the local Modules
121// from a ModuleSet.
122func ModuleSetLocalModules(moduleSet ModuleSet) []Module {
123 return xslices.Filter(
124 moduleSet.Modules(),
125 func(module Module) bool { return module.IsLocal() },
126 )
127}
128
129// ModuleSetRemoteModules is a convenience function that returns the remote Modules
130// from a ModuleSet.

Callers 3

ModuleSetLocalOpaqueIDsFunction · 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…