You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 the branch and not the version parameter.
dependencies: [
// this is the dependency on the swift-aws-lambda-runtime library
// in real-world projects this would say
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", branch: "main")
//.package(name: "swift-aws-lambda-runtime", path: "../.."),
],
Actual behavior
When in the Examples/Echo directory, the plugin fails with the error below.
This is because inside the docker container /workspace maps to Examples/Echo and the examples' Package.swift refer to the swift-runtime library as ../.. which does not exist in the docker container.
Swift & OS version (output of swift --version && uname -a)
✗ swift --version && uname -a
swift-driver version: 1.62.15 Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
Target: arm64-apple-macosx13.0
Darwin bcd07458a91c 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct 9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000 arm64
The text was updated successfully, but these errors were encountered:
sebsto
changed the title
Provided example's Package.swift does not work for archive plugin.
[plugin] Provided example's Package.swift does not work for archive plugin.
Dec 13, 2022
sebsto
changed the title
[plugin] Provided example's Package.swift does not work for archive plugin.
[plugin] Provided Examples' Package.swift does not work with the archive plugin.
Dec 13, 2022
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 [email protected]: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
)The text was updated successfully, but these errors were encountered: