Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation and online help around global default toolchains #224

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

cmcgee1024
Copy link
Member

Skip prompting to update an existing swift version file

Add more informative messages when using toolchains to indicate what actually changed

…obal default and in-use toolchains

Skip prompting to update an existing swift version file

Add more informative messages when using toolchains to indicate what actually changed
@cmcgee1024
Copy link
Member Author

@swift-ci test macOS


if case let .swiftVersionFile(versionFile, _, _) = result {
// We don't care in this case if there were any problems with the swift version files, just overwrite it with the new value

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still want to respect assumeYes here and if not, prompt the user?

Copy link
Member Author

@cmcgee1024 cmcgee1024 Feb 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The feedback I've received is that because we're updating an existing file, not creating a new one, and the file is very simple it should be ok to continue without a prompt/assume-yes as long as we provide a clear message of what has happened.

The file `path/to/.swift-version` has been set to `6.0.3` (was 6.0.1)

With this information, one can reverse what has happened.

There is still a prompt and assume-yes in the case where a new file is created because it helps with discovering the feature, and happens less regularly.

Copy link
Contributor

@patrickfreed patrickfreed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for these updates, they look great.

@cmcgee1024 cmcgee1024 merged commit 76ef042 into swiftlang:main Feb 12, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants