Skip to content

Commit 4992ba5

Browse files
authored
change flag name from --allow-network-access to --allow-network-connections as documented by SPM (#407)
1 parent 1edaedf commit 4992ba5

File tree

10 files changed

+11
-10
lines changed

10 files changed

+11
-10
lines changed

Examples/APIGateway/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To build the package, type the following commands.
2222

2323
```bash
2424
swift build
25-
swift package archive --allow-network-access docker
25+
swift package archive --allow-network-connections docker
2626
```
2727

2828
If there is no error, there is a ZIP file ready to deploy.

Examples/HelloWorld/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To build & archive the package, type the following commands.
1818

1919
```bash
2020
swift build
21-
swift package archive --allow-network-access docker
21+
swift package archive --allow-network-connections docker
2222
```
2323

2424
If there is no error, there is a ZIP file ready to deploy.

Examples/S3_AWSSDK/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To build the package, type the following commands.
2525

2626
```bash
2727
swift build
28-
swift package archive --allow-network-access docker
28+
swift package archive --allow-network-connections docker
2929
```
3030

3131
If there is no error, there is a ZIP file ready to deploy.

Examples/S3_Soto/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To build the package, type the following command.
2525

2626
```bash
2727
swift build
28-
swift package archive --allow-network-access docker
28+
swift package archive --allow-network-connections docker
2929
```
3030

3131
If there is no error, there is a ZIP file ready to deploy.

Plugins/AWSLambdaPackager/Plugin.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ struct AWSLambdaPackager: CommandPlugin {
287287
288288
REQUIREMENTS: To use this plugin, you must have docker installed and started.
289289
290-
USAGE: swift package --allow-network-access docker archive [--help] [--verbose]
290+
USAGE: swift package --allow-network-connections docker archive
291+
[--help] [--verbose]
291292
[--output-directory <path>]
292293
[--products <list of products>]
293294
[--configuration debug | release]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
swift package --allow-network-access docker plugin archive
1+
swift package archive --allow-network-connections docker
22

Sources/AWSLambdaRuntimeCore/Documentation.docc/Resources/code/04-01-03-plugin-archive.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
swift package --allow-network-access docker archive
1+
swift package archive --allow-network-connections docker
22

33
-------------------------------------------------------------------------
44
building "squarenumberlambda" in docker

Sources/AWSLambdaRuntimeCore/Documentation.docc/Resources/code/04-01-04-plugin-archive.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
swift package --allow-network-access docker archive
1+
swift package archive --allow-network-connections docker
22

33
-------------------------------------------------------------------------
44
building "squarenumberlambda" in docker

Sources/AWSLambdaRuntimeCore/Documentation.docc/quick-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ AWS Lambda runtime runs on Amazon Linux. You must compile your code for Amazon L
106106
> Be sure to have [Docker](https://docs.docker.com/desktop/install/mac-install/) installed for this step.
107107
108108
```sh
109-
swift package --allow-network-access docker archive
109+
swift package --allow-network-connections docker archive
110110

111111
-------------------------------------------------------------------------
112112
building "squarenumberlambda" in docker

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ try await runtime.run()
8383

8484
```bash
8585
swift build
86-
swift package archive --allow-network-access docker
86+
swift package archive --allow-network-connections docker
8787
```
8888

8989
If there is no error, there is a ZIP file ready to deploy.

0 commit comments

Comments
 (0)