Skip to content

Commit d60bb11

Browse files
incertumshahmishal
andcommitted
update[static-sdk]: apply reviewers suggestions
Co-authored-by: Mishal Shah <[email protected]> Signed-off-by: Melissa Kilby <[email protected]>
1 parent 35ea045 commit d60bb11

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

documentation/articles/static-linux-getting-started.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,6 @@ To obtain the Static Linux SDK:
150150
* For previous releases, navigate to "Previous Releases" on the
151151
installation page.
152152

153-
* For development snapshots, access the static-sdk YAML file for your
154-
target branch (e.g., swift-6.2-branch snapshots
155-
[here](https://github.com/swiftlang/swift-org-website/blob/main/_data/builds/swift-6_2-branch/static-sdk.yml))
156-
to quickly construct the install command (following the pattern
157-
explained below) by browsing the available checksums.
158153

159154
#### (4) Installation Commands Pattern
160155

@@ -167,10 +162,20 @@ $ swift sdk install <URL-or-filename-here> [--checksum <checksum-for-archive-URL
167162
You can provide either a URL (with corresponding checksum) or a local
168163
filename where the SDK can be found.
169164

170-
For example, if you have installed the `swift-6.1.2-RELEASE` toolchain, you would enter:
165+
<!--
166+
{% assign platform = site.data.builds.swift_releases.last.platforms | where: 'name', 'Static SDK'| first %}
167+
{% assign tag = site.data.builds.swift_releases.last.tag %}
168+
{% assign tag_downcase = site.data.builds.swift_releases.last.tag | downcase %}
169+
{% assign base_url = "https://download.swift.org/" | append: tag_downcase | append: "/static-sdk/" | append: tag | append: "/" | append: tag %}
170+
{% assign command = "swift sdk install " | append: base_url | append: "_static-linux-0.0.1.artifactbundle.tar.gz --checksum " | append: platform.checksum %}
171+
172+
{% comment %} Generate branch information - ONLY major.minor {% endcomment %}
173+
-->
174+
175+
For example, if you have installed the {{ tag }} toolchain, you would enter:
171176

172177
```console
173-
$ swift sdk install https://download.swift.org/swift-6.1.2-release/static-sdk/swift-6.1.2-RELEASE/swift-6.1.2-RELEASE_static-linux-0.0.1.artifactbundle.tar.gz --checksum df0b40b9b582598e7e3d70c82ab503fd6fbfdff71fd17e7f1ab37115a0665b3b
178+
$ {{ command }}
174179
```
175180

176181
This will download and install the corresponding Static Linux SDK on

0 commit comments

Comments
 (0)