(include string, lockfile *lock.File, workingDir string)
| 8 | ) |
| 9 | |
| 10 | func LoadConfigFromInclude(include string, lockfile *lock.File, workingDir string) (*Config, error) { |
| 11 | var includable Includable |
| 12 | var err error |
| 13 | if t, name, _ := strings.Cut(include, ":"); t == "plugin" { |
| 14 | includable = devpkg.PackageFromStringWithDefaults( |
| 15 | name, |
| 16 | lockfile, |
| 17 | ) |
| 18 | } else { |
| 19 | includable, err = parseIncludable(include, workingDir) |
| 20 | if err != nil { |
| 21 | return nil, err |
| 22 | } |
| 23 | } |
| 24 | return getConfigIfAny(includable, lockfile.ProjectDir()) |
| 25 | } |
no test coverage detected