Allow skipping tests during compilation in 'install' and 'update' subcommands

This commit is contained in:
2026-01-28 13:02:37 +02:00
parent 0742c81f2f
commit c1fa9d9474
3 changed files with 12 additions and 5 deletions
+2 -1
View File
@@ -16,6 +16,7 @@ type BPMOperation struct {
UnresolvedDepends []string
Changes map[string]string
CompilationJobs int
RunChecks bool
RootDir string
compiledPackages map[string]string
@@ -680,7 +681,7 @@ func (operation *BPMOperation) Execute(verbose, force bool) (err error) {
// Compile source package if not compiled already
if _, ok := operation.compiledPackages[pkgNameToInstall]; !ok {
outputBpmPackages, err := CompileSourcePackage(value.File, compiledDir, operation.CompilationJobs, false, false, verbose)
outputBpmPackages, err := CompileSourcePackage(value.File, compiledDir, operation.CompilationJobs, !operation.RunChecks, false, verbose)
if err != nil {
return fmt.Errorf("could not compile source package (%s): %s\n", value.File, err)
}