swiftly icon indicating copy to clipboard operation
swiftly copied to clipboard

Validate permission to toolchain directory prior download

Open freef4ll opened this issue 2 years ago • 1 comments

It would be good to validate if the directory can be created prior downloading the toolchain

$ swiftly  install latest
Fetching the latest stable Swift release...
Installing Swift 5.9.0
                                                                                                   Downloading Swift 5.9.0
100% [=========================================================================================================================================================================================================]
Downloaded 548.6 MiB of 548.6 MiB
Extracting toolchain...
Error: ExtractError(message: Optional("Failed to create dir \'/usr/local/share/toolchains/5.9.0\'"))

freef4ll avatar Sep 25 '23 10:09 freef4ll

The check could be done before the lengthy download and abort the install process right away with the explanation.

cmcgee1024 avatar May 22 '25 17:05 cmcgee1024