Skip to content

Install the SwiftPM/Swift Build resources in /usr/share/pm #418

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 2 commits into from
May 12, 2025

Conversation

owenv
Copy link
Contributor

@owenv owenv commented May 6, 2025

Builds on #417 - only the second commit is new

Ensure the Windows installer includes the resources bundled in swiftlang/swift-build#488

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.

I'd rather that we explicitly list the files if possible. Do you expect the list to constantly change dramatically? The only place that we currently harvest is in the clang resources, which has continued to be a source of installation failures. I think that we should prefer to just enumerate the content that we are distributing.

@owenv
Copy link
Contributor Author

owenv commented May 6, 2025

I don't expect the list to change dramatically, but it is added to fairly often, and it's unfortunate if we have to stage cross-repo changes every time that happens

@owenv owenv force-pushed the owenv/swift-build-resources branch from 7db0a42 to 4b174e0 Compare May 8, 2025 04:15
@owenv owenv changed the title Harvest the SwiftPM/Swift Build resources in /usr/share/pm Install the SwiftPM/Swift Build resources in /usr/share/pm May 8, 2025
@owenv
Copy link
Contributor Author

owenv commented May 8, 2025

I updated this patch to explicitly list everything and am autogenerating the content via scripts in the Swift Build repo

@owenv owenv force-pushed the owenv/swift-build-resources branch 2 times, most recently from a9e92ae to e1cb254 Compare May 12, 2025 02:07
@owenv
Copy link
Contributor Author

owenv commented May 12, 2025

Built a toolchain in https://ci-external.swift.org/job/swift-PR-build-toolchain-windows/5885/ and confirmed all the content is installed to the correct location. @compnerd, do you have any concerns about landing this version of the installer changes?

@owenv owenv requested a review from compnerd May 12, 2025 16:10
<ComponentGroupRef Id="SWBQNXPlatformResources" />
<ComponentGroupRef Id="SWBUniversalPlatformResources" />
<ComponentGroupRef Id="SWBWebAssemblyPlatformResources" />
<ComponentGroupRef Id="SWBWindowsPlatformResources" />
Copy link
Member

Choose a reason for hiding this comment

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

I think that SwiftBuild should be its own ComponentGroup. Is there a plan to merge SwiftBuild into SPM (not as a dependency but repository-wise)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I moved everything under the SwiftBuild component group for now. We might consider merging the repositories at some point but likely not in the near future

@@ -52,6 +52,16 @@
<Directory Id="_usr_share_docc" Name="docc">
<Directory Id="_usr_share_docc_render" Name="render" />
</Directory>
<Directory Id="_usr_share_pm" Name="pm">
Copy link
Member

Choose a reason for hiding this comment

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

Why is this in shared? I think that this should be in cli.wxs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No particular reason, fixed it

@owenv owenv force-pushed the owenv/swift-build-resources branch from e1cb254 to 66728d6 Compare May 12, 2025 17:13
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.

Thanks! Please do a windows toolchain build before merging this.

@owenv
Copy link
Contributor Author

owenv commented May 12, 2025

Built a working toolchain with the latest changes in https://ci-external.swift.org/job/swift-PR-build-toolchain-windows/5888/. Installed content all looks correct.

@owenv owenv merged commit 35dc26c into swiftlang:main May 12, 2025
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