Skip to content

Custom runtime not workig for deployment of single function #755

@rgruenewald

Description

@rgruenewald

This is a (Bug Report)

Description

For bug reports:

  • What went wrong?
    serverless deploy function -f functionName always triggers the "serverless-webpack" plugin even when the runtime is not "nodejs".
  • What did you expect should have happened?
    serverless-webpack should not trigger on non nodejs runtimes (e.g. python)

The issue resides in within "lib/validate.js". The pull request (https://github.com/serverless-heaven/serverless-webpack/pull/579/files) applied the custom runtime only for "serverless deploy" but not for "serverless deploy function -f".

Similar or dependent issue(s):

Additional Data

  • Serverless-Webpack Version you're using: 5.4.0
  • Webpack version you're using: 4.46.0
  • Serverless Framework Version you're using: 2.31.0
  • Operating System: Amazon Linux v2
  • Stack Trace (if available):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions