INNER CODE UNIT · Go
groups
alibaba/loongcollector · tools/builder/main.go:144
groups := [][]*pluginModule{
conf.Plugins.Common,
conf.Plugins.Windows,
conf.Plugins.Linux,
conf.Plugins.Debug,
}
for _, mods := range groups {
for _, mod := range mods {
if mod.Import == "" {
mod.Import = strings.Split(mod.GoMod, " ")[0]
}
if mod.Path != "" {
var err error
if mod.Path, err = filepath.Abs(mod.Path); err != nil {
return fmt.Errorf("couldn't resolve absolute dir of path: %s, err: %s", mod.Path, err)
}
}
}