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

Function NewModuleInputConfig

private/bufpkg/bufconfig/input_config.go:201–211  ·  view source on GitHub ↗

NewModuleInputConfig returns an input config for a module.

(
	location string,
)

Source from the content-addressed store, hash-verified

199
200// NewModuleInputConfig returns an input config for a module.
201func NewModuleInputConfig(
202 location string,
203) (InputConfig, error) {
204 if location == "" {
205 return nil, errors.New("empty location for module")
206 }
207 return &inputConfig{
208 inputConfigType: InputConfigTypeModule,
209 location: location,
210 }, nil
211}
212
213// NewDirectoryInputConfig returns an input config for a directory.
214func NewDirectoryInputConfig(

Callers 1

GetInputConfigForRefFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…