Closed sebsto closed 2 months ago
This PR proposes changes to make the archive
plugin works with the examples.
https://github.com/swift-server/swift-aws-lambda-runtime/pull/277
made this PR to document the 1.x API. once merged we can tag a 1.0.0-alpha.1
Expected behavior
Trying to use the archive plugin on examples is not working out of the box.
In the examples directory
Package.swift
must be modified as this (note thebranch
and not theversion
parameter.Actual behavior
When in the
Examples/Echo
directory, the plugin fails with the error below. This is because inside the docker container/workspace
maps toExamples/Echo
and the examples'Package.swift
refer to the swift-runtime library as../..
which does not exist in the docker container.Steps to reproduce
git clone git@github.com:sebsto/swift-aws-lambda-runtime.git
cd swift-aws-lambda-runtime/Examples/Echo
swift package --disable-sandbox archive --verbose 1
If possible, minimal yet complete reproducer code (or URL to code)
n/a
SwiftAWSLambdaRuntime version/commit hash
https://github.com/swift-server/swift-aws-lambda-runtime/tree/dc64ce195b1c51356f6655935c3509e296c35696
Swift & OS version (output of
swift --version && uname -a
)