Skip to content

Avoid installing a new toolchain on self-update - #610

Merged
etcwilde merged 1 commit into
swiftlang:mainfrom
etcwilde:ewilde/only-self-update
Oct 22, 2026
Merged

etcwilde merged 1 commit into
swiftlang:mainfrom
etcwilde:ewilde/only-self-update

Conversation

@etcwilde

Copy link
Copy Markdown
Member

A Swiftly self-update runs swiftly init afterward to install itself and configure everything. Unlike on the initial installation, a self-update indicates that Swiftly was already installed and configured. If someone explicitly specified that they didn't want to install a toolchain or modify their profile when they first installed Swiftly, an update shouldn't ignore that do it anyway.

Stop modifying the profile to source the env.sh and stop trying to install the latest toolchain on a Swiftly self-update.

A Swiftly self-update runs `swiftly init` afterward to install itself
and configure everything. Unlike on the initial installation, a
self-update indicates that Swiftly was already installed and configured.
If someone explicitly specified that they didn't want to install a
toolchain or modify their profile when they first installed Swiftly, an
update shouldn't ignore that do it anyway.

Stop modifying the profile to source the env.sh and stop trying to
install the latest toolchain on a Swiftly self-update.
@etcwilde
etcwilde merged commit d35bac9 into swiftlang:main Oct 22, 2026
27 checks passed
@etcwilde etcwilde linked an issue Nov 7, 2026 that may be closed by this pull request
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.

swiftly self-update should not modify profile

2 participants