Skip to content

[5.9] Print package-name in .private.swiftinterface only for better abstraction #66256

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 1 commit into from
Jun 1, 2023

Conversation

elsh
Copy link
Contributor

@elsh elsh commented May 31, 2023

Description: package-name flag needs to be printed in .private.swiftinterface
only as package symbols are not contained in public swiftinterface and the
clients of the swiftinterface should not be privy to the package-name input
value. The change has already landed in main; this PR is to enforce the same
behavior on 5.9.
Risk: Low. The change has been on main already and been tested.
Original PR: #65336
Reivewers: @xymus
Testing: Added tests to ensure the flag is abstracted away from public swiftinterface
Resolves: rdar://107638447

…nterface

only as package symbols are not contained in public swiftinterface and the
clients of the swiftinterface should not be privy to the package-name input
value. The change has already landed in main; this PR is to enforce the same
behavior on 5.9.
Risk: Low. The change has been on main already and been tested.
Original PR: #65336
Reivewers: @xymus
Testing: Added tests to ensure the flag is abstracted away from public swiftinterface
Resolves: rdar://107638447
@elsh elsh requested a review from a team as a code owner May 31, 2023 21:25
@elsh elsh requested review from xymus and nkcsgexi May 31, 2023 21:25
@elsh
Copy link
Contributor Author

elsh commented May 31, 2023

@swift-ci test

@elsh elsh changed the title Print package-name in .private.swiftinterface only for better abstraction [5.9] Print package-name in .private.swiftinterface only for better abstraction May 31, 2023
@elsh
Copy link
Contributor Author

elsh commented May 31, 2023

cherrypicked from main #65336

@tshortli tshortli added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.9 labels Jun 1, 2023
Copy link
Contributor

@xymus xymus 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 an important change as package names are not of public concern, they should be listed only in the private swiftinterface.

@elsh elsh merged commit f618b41 into release/5.9 Jun 1, 2023
@elsh elsh deleted the es-priv branch June 1, 2023 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.9
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants