You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
I was trying to specify dependencies per functions in my project using serverless-python-requirements.
I ran into this error when packaging the functions:
"Could not open requirements file: [Errno 22] Invalid argument: ".serverless/function1\requirements.txt"
After digging a little bit, it appears that the issue might with lib\pip.js. Function dockerPathForWin only replace first instance of backslash
function dockerPathForWin(options, path) {
if (process.platform === 'win32' && options.dockerizePip) {
return path.replace('\\', '/');
}
return path;
}
Should it be?
function dockerPathForWin(options, path) {
if (process.platform === 'win32' && options.dockerizePip) {
return path.replace(\//\g, '/');
}
return path;
}
I was trying to specify dependencies per functions in my project using serverless-python-requirements.
I ran into this error when packaging the functions:
"Could not open requirements file: [Errno 22] Invalid argument: ".serverless/function1\requirements.txt"
After digging a little bit, it appears that the issue might with lib\pip.js. Function dockerPathForWin only replace first instance of backslash
Should it be?