Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically list and install SDKs from swift.org #7737

Open
finagolfin opened this issue Jun 30, 2024 · 0 comments
Open

Automatically list and install SDKs from swift.org #7737

finagolfin opened this issue Jun 30, 2024 · 0 comments

Comments

@finagolfin
Copy link
Contributor

Description

Now that swift.org provides static linux SDKs, it would be good to provide an easier way to install official SDKs than the method shown there:

swift sdk install https://download.swift.org/development/static-sdk/swift-DEVELOPMENT-SNAPSHOT-2024-06-06-a/swift-DEVELOPMENT-SNAPSHOT-2024-06-06-a_static-linux-0.0.1.artifactbundle.tar.gz

This allows downloading and installing incompatible SDKs, causing confusion for new users, who might be interested in trying Swift because of this new feature.

It would be good to add built-in support for SDK downloads from swift.org, so you could easily list and install the right version for your toolchain.

Expected behavior

Some workflow like this would be great:

> swift sdk remote list
static-linux-0.0.1
> swift sdk remote install static-linux-0.0.1
static-linux-0.0.1 installed. These triples are now available:
x86_64-swift-linux-musl
aarch64-swift-linux-musl

Obviously, this would simply list and install the swift-DEVELOPMENT-SNAPSHOT-2024-06-06-a SDKs if that is the toolchain tag I'm using, avoiding problems like in that forum thread.

Eventually, we could add support for configuring external remote SDK listings too.

Actual behavior

An sdk install command that currently allows downloading anything, which is more error-prone.

Steps to reproduce

No response

Swift Package Manager version/commit hash

6.0 and 6.1

Swift & OS version (output of swift --version && uname -a)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant