14
14
//
15
15
// ===----------------------------------------------------------------------===//
16
16
17
+ import class Foundation. ProcessInfo // needed for CI to test the local version of the library
17
18
import PackageDescription
18
19
19
20
let package = Package (
@@ -26,10 +27,7 @@ let package = Package(
26
27
. executable( name: " SQSLambda " , targets: [ " SQSLambda " ] ) ,
27
28
] ,
28
29
dependencies: [
29
- // this is the dependency on the swift-aws-lambda-runtime library
30
- // in real-world projects this would say
31
- // .package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", branch: "main"),
32
- . package ( name: " swift-aws-lambda-runtime " , path: " ../.. " ) ,
30
+ . package ( url: " https://github.com/swift-server/swift-aws-lambda-runtime.git " , from: " 1.0.0-alpha " ) ,
33
31
. package ( url: " https://github.com/swift-server/swift-aws-lambda-events.git " , branch: " main " )
34
32
] ,
35
33
targets: [
@@ -63,3 +61,11 @@ let package = Package(
63
61
)
64
62
]
65
63
)
64
+
65
+ // for CI to test the local version of the library
66
+ if ProcessInfo . processInfo. environment [ " LAMBDA_USE_LOCAL_DEPS " ] != nil {
67
+ package . dependencies = [
68
+ . package ( name: " swift-aws-lambda-runtime " , path: " ../.. " ) ,
69
+ . package ( url: " https://github.com/swift-server/swift-aws-lambda-events.git " , branch: " main " ) ,
70
+ ]
71
+ }
0 commit comments