Skip to content

Conversation

@roulpriya
Copy link
Contributor

@roulpriya roulpriya commented Aug 13, 2025

Feature Issue #1778

Description

  • Install a new toolchain when the user selects a toolchain version from the quickPick.
  • Linux-Specific Post-Install Handling:
    • Post-install file processing only occurs on Linux platforms
  • Allow-list based validation for Linux package manager commands
  • User Confirmation with Summary
  • Uses pkexec on Linux for privilege elevation

Issue: 1778

Tasks

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

@roulpriya
Copy link
Contributor Author

image

@roulpriya roulpriya force-pushed the installing-swiftly-toolchain branch 3 times, most recently from 845d30a to 3b13b09 Compare August 15, 2025 06:43
@roulpriya roulpriya marked this pull request as ready for review August 15, 2025 06:44
Copy link
Member

@matthewbastien matthewbastien left a comment

Choose a reason for hiding this comment

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

Looking really good so far! Here are some things I noticed while testing this out locally:

  • The toolchain selection dialog is getting really big with this change. I think it makes more sense to make the Swiftly install a separate VS Code command and add it as an action to the toolchain selection dialog. Toolchain selection is more about switching between already installed toolchains anyway.
  • Toolchains should be ordered most recent first rather than earliest. E.g. 6.1.1 should be at the top.

@matthewbastien matthewbastien self-requested a review August 18, 2025 12:52
@roulpriya roulpriya force-pushed the installing-swiftly-toolchain branch from 5cd66b3 to 76f3df7 Compare August 21, 2025 03:15
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.

Looking good, some smaller things

@roulpriya roulpriya force-pushed the installing-swiftly-toolchain branch 3 times, most recently from 80b67fe to a1515c6 Compare August 25, 2025 16:43
@roulpriya roulpriya force-pushed the installing-swiftly-toolchain branch from a1515c6 to 9ef0ecf Compare August 26, 2025 14:38
@award999 award999 self-requested a review August 26, 2025 14:44
Copy link
Member

@matthewbastien matthewbastien left a comment

Choose a reason for hiding this comment

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

This is awesome! Thank you!

I left one comment about the snapshot installation not working correctly on my machine, but I think I'll just raise a new issue for it to address later.

return;
}

const availableToolchains = await Swiftly.listAvailable(ctx.logger);
Copy link
Member

Choose a reason for hiding this comment

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

This can be addressed in a future PR, but on my machine swiftly list-available does not show any snapshots by default. I have to be more specific and explicitly ask for 6.2-snapshot: swiftly list-available 6.2-snapshot.

This command always says "you have installed all available snapshots" even though I could update to a newer 6.2-snapshot.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#1807 Addressed

@matthewbastien matthewbastien merged commit fc656b4 into swiftlang:main Aug 27, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants