swiftly icon indicating copy to clipboard operation
swiftly copied to clipboard

Remind user about missing system packages

Open cmcgee1024 opened this issue 10 months ago • 3 comments

When installing a Linux toolchain without a post-install file there's a brief message about the system packages that are needed for the toolchain. What happens if a user forgets about the message, logs out of ssh, or clears their terminal? The only opportunity to discover what those packages were is by installing (or uninstalling/reinstalling) a toolchain again, which is time consuming.

There should be a mechanism for the user to pull up the missing packages for a toolchain after the initial installation without having to work around it. Ideally, there will be a warning if they try to use or proxy to a toolchain that doesn't have all of its dependencies met. That could be another opportunity to present the user with the actionable message.

cmcgee1024 avatar Feb 24 '25 23:02 cmcgee1024

can we consider prompting the user and installing on their behalf? (or are we avoiding anything with privilege escalation with swiftly?)

Could we consider a swiftly check command that does that same inspection and reports any missing dependencies, printing out the detail that's needed to install them? Or even pipe that into an install command

(possible example usage being something like swiftly check | apt install || swiftly check "Swift 5.10.1" | apt install)

I'm mostly looking for a fast-path to automated installation of not only the toolchain, but all required dependencies that could be used in a CI/GH Action kind of setup.

heckj avatar Mar 28 '25 16:03 heckj

I'm mostly looking for a fast-path to automated installation of not only the toolchain, but all required dependencies that could be used in a CI/GH Action kind of setup.

There's a document for that case here: https://swiftpackageindex.com/swiftlang/swiftly/main/documentation/swiftlydocs/automated-install

This issue mostly has to do with reminding users if they have outstanding system packages that haven't been installed in some way.

cmcgee1024 avatar Mar 28 '25 16:03 cmcgee1024

Why can Swiftly not just install the missing dependencies? That would really simplify things, especially for novice users.

svanimpe avatar Apr 01 '25 09:04 svanimpe