From e5404c95cbd28118b9a8d7fbeeb3eba6695254c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Stormacq?= Date: Sun, 22 Dec 2024 07:36:32 +0100 Subject: [PATCH] [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. --- Examples/APIGateway/Package.swift | 2 +- Examples/BackgroundTasks/Package.swift | 2 +- Examples/CDK/Package.swift | 2 +- Examples/HelloWorld/Package.swift | 2 +- Examples/Streaming/Package.swift | 2 +- .../Documentation.docc/Resources/code/03-02-05-package.swift | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Examples/APIGateway/Package.swift b/Examples/APIGateway/Package.swift index ebaac99a..13ef31f5 100644 --- a/Examples/APIGateway/Package.swift +++ b/Examples/APIGateway/Package.swift @@ -29,7 +29,7 @@ let package = Package( .product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"), .product(name: "AWSLambdaEvents", package: "swift-aws-lambda-events"), ], - path: "." + path: "Sources" ) ] ) diff --git a/Examples/BackgroundTasks/Package.swift b/Examples/BackgroundTasks/Package.swift index 84ca71ad..5e703b0b 100644 --- a/Examples/BackgroundTasks/Package.swift +++ b/Examples/BackgroundTasks/Package.swift @@ -27,7 +27,7 @@ let package = Package( dependencies: [ .product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime") ], - path: "." + path: "Sources" ) ] ) diff --git a/Examples/CDK/Package.swift b/Examples/CDK/Package.swift index ebaac99a..13ef31f5 100644 --- a/Examples/CDK/Package.swift +++ b/Examples/CDK/Package.swift @@ -29,7 +29,7 @@ let package = Package( .product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"), .product(name: "AWSLambdaEvents", package: "swift-aws-lambda-events"), ], - path: "." + path: "Sources" ) ] ) diff --git a/Examples/HelloWorld/Package.swift b/Examples/HelloWorld/Package.swift index adb4b1f9..5f2421be 100644 --- a/Examples/HelloWorld/Package.swift +++ b/Examples/HelloWorld/Package.swift @@ -27,7 +27,7 @@ let package = Package( dependencies: [ .product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime") ], - path: "." + path: "Sources" ) ] ) diff --git a/Examples/Streaming/Package.swift b/Examples/Streaming/Package.swift index 85e1d093..b368d22b 100644 --- a/Examples/Streaming/Package.swift +++ b/Examples/Streaming/Package.swift @@ -27,7 +27,7 @@ let package = Package( dependencies: [ .product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime") ], - path: "." + path: "Sources" ) ] ) diff --git a/Sources/AWSLambdaRuntimeCore/Documentation.docc/Resources/code/03-02-05-package.swift b/Sources/AWSLambdaRuntimeCore/Documentation.docc/Resources/code/03-02-05-package.swift index 68ef3130..6e484fd6 100644 --- a/Sources/AWSLambdaRuntimeCore/Documentation.docc/Resources/code/03-02-05-package.swift +++ b/Sources/AWSLambdaRuntimeCore/Documentation.docc/Resources/code/03-02-05-package.swift @@ -20,7 +20,7 @@ let package = Package( dependencies: [ .product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime") ], - path: "." + path: "Sources" ) ] )