INNER CODE UNIT · Go

file

alibaba/loongcollector · tools/builder/main.go:58

		file = getAbsPath(file, *projectRoot)
		if _, err = os.Stat(file); err != nil {
			fmt.Println("plugins config file not found(skipped):", file, "error:", err)
			continue
		}
		c, e := loadPluginConfig(file)
		if e != nil {
			fmt.Println("fail to load config from file:", file, "error:", e)
			os.Exit(1)
		}
		conf.Merge(c)
	}

	if conf.Plugins.IsEmpty() {
		fmt.Println("empty plugins config file, nothing to do")
		return
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…