fix(installer): use core.common in runtime healthcheck and fix CLI guard in ucode modules

This commit is contained in:
Dushnilin
2026-09-17 15:45:50 +03:00
parent 3bcce51ec3
commit e610ea9ca3
20 changed files with 26 additions and 22 deletions
+1 -1
View File
@@ -2236,7 +2236,7 @@ function module_exports() {
};
}
if (sourcepath(1) != null && sourcepath(1) != "")
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null)
return module_exports();
exit(main(ARGV));
+1 -1
View File
@@ -258,7 +258,7 @@ function module_exports() {
return constants_map();
}
if (sourcepath(1) != null && sourcepath(1) != "")
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null)
return module_exports();
let mode = ARGV[0] || "";
+1 -1
View File
@@ -213,7 +213,7 @@ function module_exports() {
};
}
if (sourcepath(1) != null && sourcepath(1) != "")
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null)
return module_exports();
// CLI surface exists for the shell test suite, which has no way to import a
+1 -1
View File
@@ -590,7 +590,7 @@ function module_exports() {
};
}
if (sourcepath(1) != null && sourcepath(1) != "")
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null)
return module_exports();
let mode = ARGV[0] || "";
+1 -1
View File
@@ -235,7 +235,7 @@ function module_exports() {
};
}
if (sourcepath(1) != null && sourcepath(1) != "")
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null)
return module_exports();
let mode = ARGV[0] || "";
@@ -232,7 +232,7 @@ function module_exports() {
};
}
if (sourcepath(1) != null && sourcepath(1) != "")
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null)
return module_exports();
let mode = ARGV[0] || "";
@@ -383,7 +383,7 @@ function module_exports() {
};
}
if (sourcepath(1) != null && sourcepath(1) != "")
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null)
return module_exports();
let mode = as_string(ARGV[0]);
@@ -342,7 +342,7 @@ function run(argv, usage_path) {
}
}
if (sourcepath(1) != null && sourcepath(1) != "") {
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null) {
return {
run,
nft_queue_overlap
@@ -364,7 +364,7 @@ function module_exports() {
};
}
if (sourcepath(1) != null && sourcepath(1) != "")
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null)
return module_exports();
let mode = ARGV[0] || "";
@@ -17,7 +17,7 @@ function module_exports() {
};
}
if (sourcepath(1) != null && sourcepath(1) != "")
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null)
return module_exports();
validator.run_expected(KIND, USAGE, ARGV);
@@ -17,7 +17,7 @@ function module_exports() {
};
}
if (sourcepath(1) != null && sourcepath(1) != "")
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null)
return module_exports();
validator.run_expected(KIND, USAGE, ARGV);
@@ -1346,7 +1346,7 @@ function module_exports() {
};
}
if (sourcepath(1) != null && sourcepath(1) != "")
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null)
return module_exports();
// CLI surface for the shell test suite, which cannot import a ucode module.
+1 -1
View File
@@ -3254,7 +3254,7 @@ function module_exports() {
};
}
if (sourcepath(1) != null && sourcepath(1) != "")
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null)
return module_exports();
let mode = ARGV[0];