This commit is contained in:
2026-01-18 08:54:48 -06:00
parent a7a323a74e
commit bbd2d298ba
18 changed files with 258 additions and 256 deletions

View File

@@ -213,9 +213,9 @@ if (scope == 'shop') {
// Gather all dependencies
var all_deps = pkg.gather_dependencies(locator)
packages_to_verify.push(locator)
for (var dep of all_deps) {
arrfor(all_deps, function(dep) {
packages_to_verify.push(dep)
}
})
} else {
packages_to_verify.push(locator)
}
@@ -228,25 +228,25 @@ log.console("")
check_link_cycles()
check_dangling_links()
for (var p of packages_to_verify) {
if (p == 'core') continue
arrfor(packages_to_verify, function(p) {
if (p == 'core') return
verify_package(p)
}
})
// Print results
if (warnings.length > 0) {
log.console("Warnings:")
for (var w of warnings) {
arrfor(warnings, function(w) {
log.console(" " + w)
}
})
log.console("")
}
if (errors.length > 0) {
log.console("Errors:")
for (var e of errors) {
arrfor(errors, function(e) {
log.console(" " + e)
}
})
log.console("")
log.console("Verification FAILED: " + text(errors.length) + " error(s), " + text(warnings.length) + " warning(s)")
// Note: would use process.exit(1) if available