Skip to content

Conversation

matthewbastien
Copy link
Member

@matthewbastien matthewbastien commented Sep 26, 2025

Description

Respect the user's configuration selection when invoking swiftly use. If the user selects the workspace configuration then the toolchain will be updated via the .swift-version file in the workspace (and if one isn't there it will be created). For global toolchains the --global-default option will be set so that the toolchain gets updated globally.

Issue: #1848

Tasks

  • Required tests have been written
  • [ ] Documentation has been updated
  • [ ] Added an entry to CHANGELOG.md if applicable

Swiftly is a new feature that hasn't made it into a release yet. No need to update change log.

toolchainPath => ({
const swiftlyToolchains = (await Swiftly.list(logger))
// Sort in descending order alphabetically
.sort((a, b) => -a.localeCompare(b))
Copy link
Contributor

Choose a reason for hiding this comment

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

wouldn't that put 5.10 before 5.9?

Copy link
Contributor

@award999 award999 left a comment

Choose a reason for hiding this comment

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

Can fix sorting in next PR

@matthewbastien
Copy link
Member Author

Unrelated test failure. Merging.

@matthewbastien matthewbastien merged commit fa61d31 into swiftlang:main Sep 30, 2025
44 of 46 checks passed
@matthewbastien matthewbastien deleted the swiftly-use branch September 30, 2025 17:24
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.

2 participants