Skip to content

Update installed version of static linux SDK to 0.1.0 when using released toolchains#241

Open
owenv wants to merge 1 commit intoswiftlang:mainfrom
owenv:owenv/static
Open

Update installed version of static linux SDK to 0.1.0 when using released toolchains#241
owenv wants to merge 1 commit intoswiftlang:mainfrom
owenv:owenv/static

Conversation

@owenv
Copy link

@owenv owenv commented Feb 28, 2026

The old version, 0.0.1, is no longer available to download, causing workflows to fail

@owenv owenv requested a review from a team as a code owner February 28, 2026 00:37

install_static_linux_sdk() {
# Check if the Static Linux Swift SDK is already installed
if "$SWIFT_EXECUTABLE_FOR_STATIC_LINUX_SDK" sdk list 2>/dev/null | grep -q "^${STATIC_LINUX_SDK_TAG}_static-linux-0.0.1"; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will need a logic to use 0.0.1 if <=6.2.3 or 0.1.0 if 6.2.4.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, it seems like nightly main and nightly-6.2 also differ from 6.2 here

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think instead we might need a check for nightly vs non-nightly

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

static_linux_sdk_version=$(echo "$releases_json" | jq -r --arg version "$latest_version" '
            .[]
            | select(.name == $version)
            | .platforms[]
            | select(.platform == "static-sdk")
            | .version
        ')

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be able to get us the correct version automatically in the future.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! this still might need some work but I think it's getting there

@owenv owenv changed the title Update installed version of static linux SDK to 0.1.0 Update installed version of static linux SDK to 0.1.0 when using released toolchains Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants