snyk 1.1265.0 → 1.1267.0
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/dist/cli/245.index.js +4 -4
- package/dist/cli/245.index.js.map +1 -1
- package/dist/cli/thirdPartyNotice.json +2 -2
- package/help/cli-commands/container-test.md +2 -2
- package/help/cli-commands/iac-describe.md +0 -2
- package/help/cli-commands/test.md +2 -2
- package/package.json +1 -1
- package/src/generated/sha256sums.txt +8 -8
- package/src/generated/version +1 -1
- package/wrapper_dist/generated/sha256sums.txt +8 -8
- package/wrapper_dist/generated/version +1 -1
package/dist/cli/245.index.js
CHANGED
|
@@ -241000,19 +241000,19 @@ function dumpAllFilesInTempDir(tempDirName) {
|
|
|
241000
241000
|
writeFile(writeFilePath, contents);
|
|
241001
241001
|
});
|
|
241002
241002
|
}
|
|
241003
|
-
function updateSetuptools(setuptoolsVersion, dir, pythonEnv) {
|
|
241003
|
+
function updateSetuptools(setuptoolsVersion, dir, pythonEnv, command) {
|
|
241004
241004
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
241005
241005
|
// For python 3.12, setuptools needs to be updated
|
|
241006
241006
|
// due to removal of some deprecated packages
|
|
241007
241007
|
// see: https://github.com/pypa/pip/pull/11997
|
|
241008
|
-
const pythonVersion = yield subProcess.execute(
|
|
241008
|
+
const pythonVersion = yield subProcess.execute(command, ['--version'], {
|
|
241009
241009
|
cwd: dir,
|
|
241010
241010
|
env: pythonEnv,
|
|
241011
241011
|
});
|
|
241012
241012
|
if (!PYTHON_3_12_REGEX.test(pythonVersion)) {
|
|
241013
241013
|
return;
|
|
241014
241014
|
}
|
|
241015
|
-
yield subProcess.execute(
|
|
241015
|
+
yield subProcess.execute(`${command} -m pip install setuptools==${setuptoolsVersion}`, [], {
|
|
241016
241016
|
cwd: dir,
|
|
241017
241017
|
env: pythonEnv,
|
|
241018
241018
|
});
|
|
@@ -241026,7 +241026,7 @@ function inspectInstalledDeps(command, baseargs, root, targetFile, allowMissing,
|
|
|
241026
241026
|
dumpAllFilesInTempDir(tempDirObj.name);
|
|
241027
241027
|
try {
|
|
241028
241028
|
const pythonEnv = getPythonEnv(targetFile);
|
|
241029
|
-
yield updateSetuptools(UPDATED_SETUPTOOLS_VERSION, root, pythonEnv);
|
|
241029
|
+
yield updateSetuptools(UPDATED_SETUPTOOLS_VERSION, root, pythonEnv, command);
|
|
241030
241030
|
// See ../../pysrc/README.md
|
|
241031
241031
|
const output = yield subProcess.execute(command, [
|
|
241032
241032
|
...baseargs,
|