Skip to content

[ExplicitModuleBuild] Add a dependency scanning test for package interface #71476

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

Conversation

cachemeifyoucan
Copy link
Contributor

Add a test for dependency scanning for package interface to ensure the correct interface is found when package interface is enabled.

@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please smoke test

Copy link
Contributor

@artemcm artemcm left a comment

Choose a reason for hiding this comment

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

Nice to see it's working without any additional changes.

// RUN: -emit-package-module-interface-path %t/Bar.package.swiftinterface

// RUN: %target-swift-frontend -scan-dependencies -o %t/deps.json -I %t -experimental-package-interface-load \
// RUN: %t/Client.swift -module-name Client -package-name barpkg -swift-version 5
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add a test that ensures we use the .private. interface if the scanning invocation does not specify -package-name? If that is the expected behavior.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. It does require the experimental flag that took me a while to figure out.

…rface

Add a test for dependency scanning for package interface to ensure the
correct interface is found when package interface is enabled.
@cachemeifyoucan cachemeifyoucan force-pushed the eng/PR-add-scanning-test-for-package-interface branch from 40a809f to 0a37b8d Compare February 8, 2024 19:39
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please smoke test

@cachemeifyoucan cachemeifyoucan merged commit bafa7f1 into swiftlang:main Feb 8, 2024
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