MCPcopy Create free account
hub / github.com/jetify-com/devbox / GetBuiltinsForPackages

Function GetBuiltinsForPackages

internal/plugin/files.go:60–75  ·  view source on GitHub ↗
(
	packages []configfile.Package,
	lockfile *lock.File,
)

Source from the content-addressed store, hash-verified

58}
59
60func GetBuiltinsForPackages(
61 packages []configfile.Package,
62 lockfile *lock.File,
63) ([]*Config, error) {
64 builtIns := []*Config{}
65 for _, pkg := range devpkg.PackagesFromConfig(packages, lockfile) {
66 config, err := getBuiltinPluginConfigIfExists(pkg, lockfile.ProjectDir())
67 if err != nil {
68 return nil, err
69 }
70 if config != nil {
71 builtIns = append(builtIns, config)
72 }
73 }
74 return builtIns, nil
75}

Callers 1

loadRecursiveMethod · 0.92

Calls 3

PackagesFromConfigFunction · 0.92
ProjectDirMethod · 0.65

Tested by

no test coverage detected