Skip to content

[plugin] resources are not included in the zip file on Ubuntu #505

Closed
@sebsto

Description

@sebsto

When packaging an archive with resources on Ubuntu, the resources are not included in the zip file.

Steps to reproduce

Swift 6.0.3
Ubuntu 24.04

git clone https://github.com/swift-server/swift-aws-lambda-runtime.git
cd Examples/ResourcesPackaging
swift package archive --allow-network-connections docker

... redacted for brevity....

-------------------------------------------------------------------------
building "resourcespackaging" in docker
-------------------------------------------------------------------------
updating "swift:amazonlinux2" docker image
  amazonlinux2: Pulling from library/swift
  Digest: sha256:c677d67834013285ce51b1ef85e51333c621a28b77234abec33c95f8a47fe51e
Status: Image is up to date for swift:amazonlinux2
  docker.io/library/swift:amazonlinux2
building "MyLambda"
  [0/1] Planning build
  Building for production...
  [0/2] Write swift-version-24593BA9C3E375BF.txt
  Build of product 'MyLambda' complete! (3.59s)
-------------------------------------------------------------------------
archiving "MyLambda"
-------------------------------------------------------------------------
1 archive created
  * MyLambda at /home/ubuntu/swift-aws-lambda-runtime/Examples/ResourcesPackaging/.build/plugins/AWSLambdaPackager/outputs/AWSLambdaPackager/MyLambda/MyLambda.zip

$ unzip -l .build/plugins/AWSLambdaPackager/outputs/AWSLambdaPackager/MyLambda/MyLambda.zip 
Archive:  .build/plugins/AWSLambdaPackager/outputs/AWSLambdaPackager/MyLambda/MyLambda.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
 86548520  2025-03-13 19:20   bootstrap
---------                     -------
 86548520                     1 file

The zip file must contain hello.txt

Metadata

Metadata

Assignees

Labels

kind/bugFeature doesn't work as expected.platform/linuxLinux platform specific issues.🔨 semver/patchNo public API change.

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions