Repository navigation
Install the Visual C++ Redistributable before the Swift toolchain on Windows - #343
Draft
FranzBusch wants to merge 1 commit into
Draft
FranzBusch wants to merge 1 commit into
FranzBusch wants to merge 1 commit into
Conversation
…Windows On a hosted Windows runner, a nightly toolchain installed successfully and then `swift.exe` would not start: "The application has failed to start because its side-by-side configuration is incorrect". That error means a Visual C++ runtime the program was built against is missing, and the runner image can carry an older one than a current toolchain needs. It fails the same way in `swift_package_test.yml` and `package_test.yml`, since both install through `Install-Swift`. `Install-Swift` now installs the latest Visual C++ Redistributable for the machine's architecture first. The link follows the latest release, so there is no hash to check, and the installer must instead carry a valid Microsoft signature. A newer runtime already being present, or a pending restart, is not an error.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On a hosted Windows runner, a nightly toolchain installed successfully and then
swift.exewould not start: "The application has failed to start because its side-by-side configuration is incorrect". That error means a Visual C++ runtime the program was built against is missing, and the runner image can carry an older one than a current toolchain needs. It fails the same way inswift_package_test.ymlandpackage_test.yml, since both install throughInstall-Swift.Install-Swiftnow installs the latest Visual C++ Redistributable for the machine's architecture first. The link follows the latest release, so there is no hash to check, and the installer must instead carry a valid Microsoft signature. A newer runtime already being present, or a pending restart, is not an error.