MCPcopy Index your code
hub / github.com/bufbuild/buf / NewModuleSet

Function NewModuleSet

private/bufpkg/bufmodule/bufmoduletesting/bufmoduletesting.go:94–98  ·  view source on GitHub ↗

NewModuleSet returns a new ModuleSet. This can be used in cases where ModuleKeyProviders and ModuleDataProviders are not needed, and when FullNames do not matter. Note the ModuleDatas must be self-contained, that is they only import from each other.

(
	moduleDatas ...ModuleData,
)

Source from the content-addressed store, hash-verified

92//
93// Note the ModuleDatas must be self-contained, that is they only import from each other.
94func NewModuleSet(
95 moduleDatas ...ModuleData,
96) (bufmodule.ModuleSet, error) {
97 return newModuleSet(moduleDatas, false, nil)
98}
99
100// NewModuleSetForDirPath returns a new ModuleSet for the directory path.
101//

Callers 7

TestModuleTargetFilesFunction · 0.92
TestOptionImportsFunction · 0.92
testGetImageFromDirsFunction · 0.92
NewModuleSetForDirPathFunction · 0.85
NewModuleSetForBucketFunction · 0.85

Calls 1

newModuleSetFunction · 0.70

Tested by 4

TestModuleTargetFilesFunction · 0.74
TestOptionImportsFunction · 0.74
testGetImageFromDirsFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…