@coana-tech/cli 14.12.104 → 14.12.105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.mjs +1 -1
- package/package.json +1 -1
- package/reachability-analyzers-cli.mjs +13 -3
- package/repos/coana-tech/goana/bin/goana-darwin-amd64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-darwin-arm64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-linux-amd64.gz +0 -0
- package/repos/coana-tech/goana/bin/goana-linux-arm64.gz +0 -0
- package/repos/coana-tech/javap-service/javap-service.jar +0 -0
package/cli.mjs
CHANGED
|
@@ -250583,7 +250583,7 @@ async function onlineScan(dependencyTree, apiKey, timeout) {
|
|
|
250583
250583
|
}
|
|
250584
250584
|
|
|
250585
250585
|
// dist/version.js
|
|
250586
|
-
var version3 = "14.12.
|
|
250586
|
+
var version3 = "14.12.105";
|
|
250587
250587
|
|
|
250588
250588
|
// dist/cli-core.js
|
|
250589
250589
|
var { mapValues, omit, partition, pick } = import_lodash15.default;
|
package/package.json
CHANGED
|
@@ -111694,9 +111694,11 @@ var { omit, once: once3, pick, sortedUniq, uniqBy } = import_lodash14.default;
|
|
|
111694
111694
|
var memlimitWrapper = `import sys, runpy, resource
|
|
111695
111695
|
if memory_limit := int(sys.argv.pop(1)):
|
|
111696
111696
|
try:
|
|
111697
|
-
resource.setrlimit(resource.RLIMIT_AS, (memory_limit * 1024 ** 2,
|
|
111697
|
+
resource.setrlimit(resource.RLIMIT_AS, (memory_limit * 1024 ** 2, resource.RLIM_INFINITY))
|
|
111698
111698
|
except ValueError as e:
|
|
111699
|
-
|
|
111699
|
+
# If we're running on PyPy, memory is bounded by PYPY_GC_MAX env var
|
|
111700
|
+
if sys.implementation.name != "pypy":
|
|
111701
|
+
print("ERROR: Failed to set memory limit", e, file=sys.stderr)
|
|
111700
111702
|
runpy.run_module("mambalade", alter_sys=True)
|
|
111701
111703
|
`;
|
|
111702
111704
|
var PythonCodeAwareVulnerabilityScanner = class {
|
|
@@ -111773,7 +111775,15 @@ ${vulnAccPaths.join("\n")}`);
|
|
|
111773
111775
|
logger.debug(`With args: ${mambaladeArgs.slice(1).join(" ")}`);
|
|
111774
111776
|
}
|
|
111775
111777
|
try {
|
|
111776
|
-
const { stderr } = await exec2(mambaladeArgs, this.projectDir, {
|
|
111778
|
+
const { stderr } = await exec2(mambaladeArgs, this.projectDir, {
|
|
111779
|
+
stdin: memlimitWrapper,
|
|
111780
|
+
env: {
|
|
111781
|
+
...process.env,
|
|
111782
|
+
PYPY_GC_MAX: `${reachabilityAnalysisOptions.memoryLimitInMB ?? 0}MB`
|
|
111783
|
+
},
|
|
111784
|
+
// Forcefully kill the process if the internal timeout mechanism fails
|
|
111785
|
+
timeout: (timeout * 1.5 + 15) * 1e3
|
|
111786
|
+
});
|
|
111777
111787
|
logger.debug("Done running mambalade");
|
|
111778
111788
|
const errors = stderr.split("\n").filter((line) => line.startsWith("ERROR:") && !/^ERROR: Excluded distribution/.test(line));
|
|
111779
111789
|
if (errors.length > 0)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|