Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"packge: include" does not work? #81

Open
ItayGarin opened this issue Jul 17, 2020 · 3 comments
Open

"packge: include" does not work? #81

ItayGarin opened this issue Jul 17, 2020 · 3 comments

Comments

@ItayGarin
Copy link

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?

@softprops
Copy link
Owner

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

@ItayGarin
Copy link
Author

ItayGarin commented Jul 17, 2020 via email

@themartto
Copy link

Is there any new information on this? Currently I have the same issue 😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants