serverless-rust icon indicating copy to clipboard operation
serverless-rust copied to clipboard

"packge: include" does not work?

Open ItayGarin opened this issue 5 years ago • 3 comments

Hey @softprops!

Thanks for making this awesome project! Really enjoyed following your documentation, and deploying rust lambdas :)

I stumbled across a minor issue that might have something to do with the plugin. I'd like the include a statically built executable within the output zip artifact. Though, for some reason, I wasn't able to do so.

I've tried placing the include keyword both in the "global" serverless.yaml scope like so -

package:
  individually: true
  include:
    - bin/pdftotext

and also in my function scope like so -

functions:
  my-lambda:
  package:
    include:
      - bin/pdftotext

FYI - I've set dockerPath to ".." since I'm building inside a workspace. Like so -

custom:
  rust:
    dockerPath: ".."

Is it just my setup? Any thoughts?

ItayGarin avatar Jul 17 '20 11:07 ItayGarin

I believe similar issues have been reported in the past. I haven't had any cases where I've needed this so I haven't hit them myself. I was under the impression that serverless the framework used these directives to append to the packages zip.

I think where I can go next is add a case for this in the integration tests which test packaging

softprops avatar Jul 17 '20 15:07 softprops

Sounds great! Thanks again 😊

On Fri, Jul 17, 2020, 18:09 Doug Tangren [email protected] wrote:

I believe similar issues have been reported in the past. I haven't had any cases where I've needed this so I haven't hit them myself. I was under the impression that serverless the framework used these directives to append to the packages zip.

I think where I can go next is add a case for this in the integration tests which test packaging

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/softprops/serverless-rust/issues/81#issuecomment-660160216, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVZPCKKYW4XT6GR4WKUM2TR4BSSHANCNFSM4O6CZRNQ .

ItayGarin avatar Jul 17 '20 17:07 ItayGarin