Recommend Windows users to use `winget configure`
Opened this issue · 2 comments
Is your feature request related to a problem? Please describe
Currently Windows toolchain installation involves multiple steps, which is over-complicated for new users or developers from other platforms. We can both make the step simpler and more robust.
Describe the solution you'd like
Windows Package Manager includes WinGet Configuration tool in its latest release, which allows users to set up the required environment from a single configuration file (written in YAML), with advanced features like Developer Mode detection and control flow. We can provide the configuration, and to ensure all tools and functionalities are properly set up for Swift.
Describe alternatives you've considered
Either keep the existing way, or using a CMD/PowerShell script. Neither batch script nor PowerShell is as clear as the configuration file, and it is potentially dangerous to run a remote script which we shouldn’t promote.
Additional context
WinGet Configuration overview: https://learn.microsoft.com/en-us/windows/package-manager/configuration/
Awaiting microsoft/winget-cli#3554 which may help reduce the setup to a single command
Now that the feature is in preview, and it seems to solve the multiple problems we've had before (including setting SeSymbolicLinkPrivilege
automatically, where @compnerd may be interested). However, I would like to see if there's opportunity for Swift.org to provide "dynamic" (or configurable in some way) WinGet configuiration files so that users with all kinds of need can just copy and install with just two clicks and a single command run.
Maybe there could be an online meeting on this?