swiftly
swiftly copied to clipboard
Validate permission to toolchain directory prior download
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\'"))
The check could be done before the lengthy download and abort the install process right away with the explanation.