Skip to content

Copy Resources from External Dependencies into Archived Zip #367

Closed
@jrosen081

Description

@jrosen081

Expected behavior

When adding a third-party dependency, I would expect the zip file to correctly have the resources of all dependencies.

Actual behavior

When adding a 3rd party dependency (https://github.com/awslabs/aws-sdk-swift was what happened with me), the resources files for the dependencies were not added to the final zip. This caused an issue when trying to start up the lambda.

Steps to reproduce

  1. Follow this guide (https://fabianfett.dev/getting-started-with-swift-aws-lambda-runtime)
  2. Add AWS SDK to project
  3. Archive and upload to lambda
  4. See failure on launch with fatalerror looking for resource bundle.

If possible, minimal yet complete reproducer code (or URL to code)

No response

What version of this project (swift-aws-lambda-runtime) are you using?

1.0.0-alpha-3

Swift version

Swift 5.10

Amazon Linux 2 docker image version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugFeature doesn't work as expected.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions