AikidoSec-safe-chain/packages/safe-chain/src/packagemanager
Uriel Corfa cb9f3ee145
Do not rely on asynchronous import of child_process.
Importing child_process asynchronously causes loader errors when running the
binary dist:

$ ./dist/safe-chain python --safe-chain-logging=verbose
Safe-chain: Bypassing safe-chain for non-pip invocation: python
Failed to check for malicious packages: A dynamic import callback was not specified.
$

Relying on a regular import does not cause this issue. There is no obvious
reason for this import to be dynamic (in particular, there are no tests using
this to mock the spawn function), so let's simplify.
2025-12-12 09:09:52 +01:00
..
_shared Type check safe-chain package 2025-11-01 13:06:06 +01:00
bun Remove @ts-expect-error suppressions 2025-11-03 13:57:29 +01:00
npm Remove @ts-expect-error suppressions 2025-11-03 13:57:29 +01:00
npx Remove @ts-expect-error suppressions 2025-11-03 13:57:29 +01:00
pip Do not rely on asynchronous import of child_process. 2025-12-12 09:09:52 +01:00
pnpm Remove @ts-expect-error suppressions 2025-11-03 13:57:29 +01:00
poetry Fix some comments 2025-12-01 12:45:06 -08:00
uv Some more cleanup 2025-11-25 19:55:36 -08:00
yarn Remove yarn version check 2025-11-04 13:18:36 +01:00
currentPackageManager.js Merge pull request #178 from AikidoSec/feature/poetry-2 2025-12-05 15:56:20 +01:00