Skip to content

pythonRequirements->vendor does not work if package->individually is set to true #208

Open
@amitm02

Description

@amitm02

from the code:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions