( packages []configfile.Package, lockfile *lock.File, )
| 58 | } |
| 59 | |
| 60 | func 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 | } |
no test coverage detected