Validation hardening

This commit is contained in:
2026-05-14 15:01:04 +02:00
parent 651336d48e
commit 2cef662e8e
3 changed files with 337 additions and 0 deletions
+8
View File
@@ -196,6 +196,14 @@ func BuildNativeWithOptions(p *project.Project, opts NativeBuildOptions, progres
}
return BuildResult{}, fmt.Errorf("topdata validation failed with %d error(s)", report.ErrorCount())
}
if warnings := report.WarningCount(); warnings > 0 {
progress(fmt.Sprintf("topdata validation warnings: %d", warnings))
for _, line := range report.SummaryLines(5) {
if strings.HasPrefix(line, "warning:") {
progress(line)
}
}
}
var prebuiltWiki *wikiResult
if opts.BuildWiki {
if newestWikiSource, _, err := newestRelevantWikiSource(p.TopDataSourceDir()); err == nil && !newestWikiSource.IsZero() {