Skip to content
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

Install swift-format into Linux toolchains #71062

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jan 22, 2024

It looks like we were only installing swift-format into macOS toolchains. We should also build it on Linux toolchains so it can be installed there as well.

It looks like we were only installing swift-format into macOS toolchains. We should also build it on Linux toolchains so it can be installed there as well.
@ahoppen ahoppen requested a review from bnbarham January 22, 2024 17:29
@ahoppen
Copy link
Member Author

ahoppen commented Jan 22, 2024

@swift-ci Please smoke test

@ahoppen
Copy link
Member Author

ahoppen commented Jan 22, 2024

@swift-ci Please build toolchain Linux

@ahoppen
Copy link
Member Author

ahoppen commented Jan 22, 2024

I think we need to remove the stdlib rpath from the installed swift-format executable like we do in sourcekit-lsp

https://github.com/apple/sourcekit-lsp/blob/6768cfc4321880bf12f71044ce23486c0e06df25/Package.swift#L28-L31

Will do this after swiftlang/swift-format#679 is merged.

Copy link
Contributor

@bnbarham bnbarham left a comment

Choose a reason for hiding this comment

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

There's an integration test that checks rpaths for a bunch of defined executables, would be nice to update that to check all (and libraries) rather than just a subset.

@ahoppen
Copy link
Member Author

ahoppen commented Jan 22, 2024

@ahoppen
Copy link
Member Author

ahoppen commented Jan 23, 2024

swiftlang/swift-format#680

@swift-ci Please smoke test

@ahoppen
Copy link
Member Author

ahoppen commented Jan 23, 2024

swiftlang/swift-format#680

@swift-ci Please build toolchain

@ahoppen ahoppen merged commit 623db31 into swiftlang:main Jan 23, 2024
6 checks passed
@ahoppen ahoppen deleted the ahoppen/install-swiftformat-in-linux-toolchains branch January 23, 2024 15:30
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