MCPcopy Index your code
hub / github.com/jetify-com/devbox / getBuiltinPluginConfigIfExists

Function getBuiltinPluginConfigIfExists

internal/plugin/files.go:43–58  ·  view source on GitHub ↗
(
	pkg *devpkg.Package,
	projectDir string,
)

Source from the content-addressed store, hash-verified

41}
42
43func getBuiltinPluginConfigIfExists(
44 pkg *devpkg.Package,
45 projectDir string,
46) (*Config, error) {
47 if pkg.DisablePlugin {
48 return nil, nil
49 }
50 content, err := plugins.BuiltInForPackage(pkg.CanonicalName())
51 if errors.Is(err, fs.ErrNotExist) {
52 return nil, nil
53 }
54 if err != nil {
55 return nil, errors.WithStack(err)
56 }
57 return buildConfig(pkg, projectDir, string(content))
58}
59
60func GetBuiltinsForPackages(
61 packages []configfile.Package,

Callers 2

getConfigIfAnyFunction · 0.85
GetBuiltinsForPackagesFunction · 0.85

Calls 4

BuiltInForPackageFunction · 0.92
buildConfigFunction · 0.85
IsMethod · 0.80
CanonicalNameMethod · 0.65

Tested by

no test coverage detected