Skip to content

Support updating exsting swiftly installation from swiftly-install.sh #86

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

Merged
merged 4 commits into from
Dec 24, 2023

Conversation

patrickfreed
Copy link
Contributor

@patrickfreed patrickfreed commented Dec 10, 2023

Closes #83, also fixes #82

This PR updates the default behavior of swiftly-install.sh when an existing installation exists from prompting to perform a clean installation (i.e. delete all existing configuration and installed toolchains) to simply replacing the swiftly binary. Users can opt into the old behavior (without prompting) by using a newly introduced --overwrite option.

Going forward, most users will update swiftly via the self-update command introduced in #81, but since the current released swiftly version doesn't have that command, I think we need to provide a path through swiftly-install.sh. Furthermore, it would be too easy to accidentally delete your swiftly installation with the old default behavior, given that there isn't another supported means of upgrading.

Once this is done, I think I'm good to go ahead with releasing 0.2.0 of swiftly (and 0.3.0 of swiftly-install.sh).

@patrickfreed
Copy link
Contributor Author

@swift-server-bot test install please

@patrickfreed
Copy link
Contributor Author

@swift-server-bot test install please

@patrickfreed patrickfreed marked this pull request as ready for review December 10, 2023 04:49
@patrickfreed
Copy link
Contributor Author

The test failures look like they're unrelated--the ubuntu 18.04 machine used to run them might be out of disk space or something.

Copy link
Contributor

@adam-fowler adam-fowler left a comment

Choose a reason for hiding this comment

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

Looks good

@patrickfreed patrickfreed merged commit d14ced0 into swiftlang:main Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants