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
if (this.serverless.service.package.individually) {
...
} else {
installRequirements(
this.options.fileName,
'.serverless',
this.serverless,
this.servicePath,
this.options
);
if (this.options.vendor) {
// copy vendor libraries to requirements folder
copyVendors(this.options.vendor, '.serverless', this.serverless);
}
}
I think
if (this.options.vendor) {
// copy vendor libraries to requirements folder
copyVendors(this.options.vendor, '.serverless', this.serverless);
}
should be outside the if-else block as probably we want the general - "cross functions" vendor folder to be copied to each module, even if individuality was set to true
The text was updated successfully, but these errors were encountered:
Here in my handler.py I have imported package like from vendor.custom import package and because of above issues I used function level vendoring. But when I deploy the code I get all the files in modules copied into function folder without the module structure. Any idea why this is happening or am I doing it in the right way?
from the code:
I think
should be outside the if-else block as probably we want the general - "cross functions" vendor folder to be copied to each module, even if individuality was set to true
The text was updated successfully, but these errors were encountered: