serverless-python-requirements
serverless-python-requirements copied to clipboard
Update index.js to fix package individually.
The change allows the use of the package individually true combined with sls deploy function -f func_name.
Hello, could you explain that solution a little bit? Would you be able to cover it with unit test? I'm not sure why/how that solves the problem and would really appreciate a walkthrough 🙇
@pgrzesik looks like it's for this issue #605
Thanks a lot for linking that @rileypriddle, it indeed seems like the solution to that issue. It would be good to confirm with test case that it solves the issue and we should be good to go with this one @slslazy 🚀
Duplicate of #613
Hello @slslazy 👋 Are you interested in getting this PR through the finish line? It would be good to confirm that it works as intended with a test case
While you wait for this to merge.
sed -i 's/inputOpt\.functionObj/this\.serverless\.service\.functions\[inputOpt\.function\]/' node_modules/serverless-python-requirements/index.js
make this a bash function or set as a postinstall step in package.json to replace broken code with working one
Thanks @slslazy 🙇 I will finalize it as a part of: https://github.com/serverless/serverless-python-requirements/pull/725 after stabilizing tests. I will close this PR.