Skip to content

Reflect variant name in directory ids #432

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mhegazy
Copy link
Contributor

@mhegazy mhegazy commented Jun 26, 2025

This is a follow up change to #428. In this PR we are making directory IDs reflect the variant in the name of the install directory (e.g. Swift\Toolchains\6.2.0+Asserts\usr).

There is no functional change in this change, it is just directory ids. Directory names and which components are installed to which directories should not be changed.

This should make it easier to add new variants by following the same pattern, and will allow us to parametrize authoring that is shared between variants.

Naming convention:

  • ToolchainsVersioned became ToolchainsVersionedAsserts -- this is our top-level toolchain install directory like Swift\Toolchains\0.0.0+Asserts
  • Subdirectories like _usr_share became toolchains_asserts_usr_share to reflect the full path at install time i.e.``Swift\Toolchains\0.0.0+Asserts\usr\share`

@mhegazy mhegazy changed the title Variant specific directories Reflect variant name in directory ids Jun 26, 2025
Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

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

Can you do a s/toolchains_assert/toolchain_assert/? The use is for a single toolchain installation right?

@mhegazy mhegazy requested a review from compnerd June 26, 2025 22:04
@mhegazy
Copy link
Contributor Author

mhegazy commented Jun 26, 2025

Can you do a s/toolchains_assert/toolchain_assert/? The use is for a single toolchain installation right?

changed to use singular toolchain

@compnerd
Copy link
Member

compnerd commented Jul 3, 2025

@compnerd
Copy link
Member

compnerd commented Jul 3, 2025

The installer built properly the test failures are unrelated.

@mhegazy mhegazy force-pushed the variant-specific-directories branch from 6381eef to 51aadac Compare July 4, 2025 02:47
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