Skip to content

Commit f0944d7

Browse files
authored
Add swift 5.7 (#3)
* Add swift 5.7 * Update README * tabbing
1 parent 9437b98 commit f0944d7

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
| *Contributors* | [0xTim](https://github.com/0xTim), [adam-fowler](https://github.com/adam-fowler), [cloudnull](https://github.com/cloudnull) |
1010
| *Categories* | Community, Languages |
1111
| *Definition type* | Dockerfile |
12-
| *Supported architecture(s)* | x86-64 |
12+
| *Supported architecture(s)* | x86-64, arm64 |
1313
| *Works in Codespaces* | Yes |
1414
| *Container host OS support* | Linux, macOS, Windows |
1515
| *Container OS* | Debian |
@@ -20,14 +20,14 @@
2020
While the definition itself works unmodified, you can select the version of Swift the container uses by updating the `VARIANT` arg in the included `devcontainer.json` (and rebuilding if you've already created the container).
2121

2222
```json
23-
"args": { "VARIANT": "4" }
23+
"args": { "VARIANT": "5.7" }
2424
```
2525

2626
Given how frequently web applications use Node.js for front end code, this container also includes an optional install of Node.js. You can enable installation and change the version of Node.js installed or disable its installation by updating the `args` property in `.devcontainer/devcontainer.json`.
2727

2828
```jsonc
2929
"args": {
30-
"VARIANT": "4",
30+
"VARIANT": "5.7",
3131
"NODE_VERSION": "14" // Set to "none" to skip Node.js installation
3232
}
3333
```

src/swift/.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [Choice] Swift version: 5.6-focal, 5.5, 5.4, 5.3, 5.2, 5.1, 4.2
1+
# [Choice] Swift version: 5.7, 5.6-focal, 5.5, 5.4, 5.3, 5.2, 5.1, 4.2
22
ARG VARIANT=${templateOption:imageVariant}
33
FROM swift:${VARIANT}
44

src/swift/devcontainer-template.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "swift",
33
"version": "1.0.0",
44
"name": "Swift",
5-
"description": "Develop Swift based applications. Includes everything you need to get up and running.",
5+
"description": "Develop Swift based applications. Includes appropriate runtime args and everything you need to get up and running.",
66
"documentationURL": "https://github.com/microsoft/vscode-dev-containers/tree/main/containers/swift",
77
"publisher": "Community",
88
"licenseURL": "https://github.com/microsoft/vscode-dev-containers/blob/main/LICENSE",
@@ -11,6 +11,7 @@
1111
"type": "string",
1212
"description": "Swift version:",
1313
"proposals": [
14+
"5.7",
1415
"5.6-focal",
1516
"5.5",
1617
"5.4",
@@ -19,7 +20,7 @@
1920
"5.1",
2021
"4.2"
2122
],
22-
"default": "5.6-focal"
23+
"default": "5.7"
2324
},
2425
"installZsh": {
2526
"type": "boolean",

0 commit comments

Comments
 (0)