Skip to content

Commit e5404c9

Browse files
authored
[examples] Fix path settings in the examples' Package.swift (#439)
All the `Package.swift` files from the examples use `path: "."` instead of `path: "Sources"` which triggers error messages when users add a `Tests` directory.
1 parent 18660fc commit e5404c9

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

Examples/APIGateway/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ let package = Package(
2929
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"),
3030
.product(name: "AWSLambdaEvents", package: "swift-aws-lambda-events"),
3131
],
32-
path: "."
32+
path: "Sources"
3333
)
3434
]
3535
)

Examples/BackgroundTasks/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ let package = Package(
2727
dependencies: [
2828
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime")
2929
],
30-
path: "."
30+
path: "Sources"
3131
)
3232
]
3333
)

Examples/CDK/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ let package = Package(
2929
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"),
3030
.product(name: "AWSLambdaEvents", package: "swift-aws-lambda-events"),
3131
],
32-
path: "."
32+
path: "Sources"
3333
)
3434
]
3535
)

Examples/HelloWorld/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ let package = Package(
2727
dependencies: [
2828
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime")
2929
],
30-
path: "."
30+
path: "Sources"
3131
)
3232
]
3333
)

Examples/Streaming/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ let package = Package(
2727
dependencies: [
2828
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime")
2929
],
30-
path: "."
30+
path: "Sources"
3131
)
3232
]
3333
)

Sources/AWSLambdaRuntimeCore/Documentation.docc/Resources/code/03-02-05-package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ let package = Package(
2020
dependencies: [
2121
.product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime")
2222
],
23-
path: "."
23+
path: "Sources"
2424
)
2525
]
2626
)

0 commit comments

Comments
 (0)