swiftlang / swift-package-manager

The Package Manager for the Swift Programming Language
Apache License 2.0
9.65k stars 1.31k forks source link

[Tests] Don't use invalid module to satisfy `canImport` check #7647

Closed cachemeifyoucan closed 3 weeks ago

cachemeifyoucan commented 3 weeks ago

Stop using a fake invalid module to satisfy canImport check for testing as swift compiler will start to evaluate such checks to false in the future.

Instead, using a valid swift interfacefile to satisify the external module import dependency.

Motivation:

In order for change in https://github.com/apple/swift/pull/74199 to land, update swiftpm tests to stop using invalid swiftmodule.

cachemeifyoucan commented 3 weeks ago

@swift-ci please test