Add ability to ignore packages

This commit is contained in:
EnumDev 2025-03-13 15:34:43 +02:00
parent e2e2629dc9
commit 4f9d2cdecd
2 changed files with 4 additions and 0 deletions

View File

@ -340,6 +340,9 @@ func resolveCommand() {
// Search for packages
for _, pkg := range pkgs {
if slices.Contains(utils.BPMConfig.IgnorePackages, pkg) {
continue
}
entry, _, err := utils.GetRepositoryEntry(pkg)
if err != nil {
continue

View File

@ -11,6 +11,7 @@ type BPMConfigStruct struct {
SilentCompilation bool `yaml:"silent_compilation"`
BinaryOutputDir string `yaml:"binary_output_dir"`
CompilationDir string `yaml:"compilation_dir"`
IgnorePackages []string `yaml:"ignore_packages"`
Repositories []*Repository `yaml:"repositories"`
}