Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lib/pip.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,10 @@ async function installRequirements(targetFolder, pluginInstance) {
break;
}

let spawnArgs = { shell: true };
if (process.env.SLS_DEBUG) {
spawnArgs.stdio = 'inherit';
}
const spawnArgs = {
shell: true,
stdio: 'inherit',
};
let mainCmds = [];
if (dockerCmd.length) {
dockerCmd.push(...mergeCommands(pipCmds));
Expand All @@ -397,7 +397,7 @@ async function installRequirements(targetFolder, pluginInstance) {

for (const [cmd, ...args] of mainCmds) {
try {
await spawn(cmd, args);
await spawn(cmd, args, spawnArgs);
} catch (e) {
if (
e.stderrBuffer &&
Expand Down