Use published dependency by default in examples (#665)

## Summary

Examples now default to the published `swift-aws-lambda-runtime` package
from GitHub, so they work out of the box when cloned standalone (as
described in the READMEs).

CI scripts swap the dependency to the local path (`../..`) before
building, ensuring we still test against the current branch.

### Changes

- **`Examples/APIGatewayV2/Package.swift`** — Default to remote URL,
local path is commented out with clear instructions.
- **`.github/workflows/scripts/use-local-deps.sh`** (new) — Shared
script that rewrites Package.swift to use the local dependency.
- **`integration_tests.sh`**, **`check-archive-plugin.sh`**,
**`check-link-foundation.sh`** — Source `use-local-deps.sh` before
building.
This commit is contained in:
Sébastien Stormacq
2026-05-11 21:38:11 +02:00
committed by GitHub
parent e1e4a15c14
commit ddad9b9bee
28 changed files with 108 additions and 97 deletions
+3 -4
View File
@@ -9,11 +9,10 @@ let package = Package(
.executable(name: "MultiSourceAPI", targets: ["MultiSourceAPI"])
],
dependencies: [
// For local development (default)
.package(name: "swift-aws-lambda-runtime", path: "../.."),
// For local development, uncomment the line below and comment the remote dependency:
// .package(name: "swift-aws-lambda-runtime", path: "../.."),
// For standalone usage, comment the line above and uncomment below:
// .package(url: "https://github.com/awslabs/swift-aws-lambda-runtime.git", from: "2.0.0"),
.package(url: "https://github.com/awslabs/swift-aws-lambda-runtime.git", from: "2.9.0"),
.package(url: "https://github.com/awslabs/swift-aws-lambda-events.git", from: "1.0.0"),
],