bazelbuild / rules_swift

Bazel rules to build Swift on Apple and Linux platforms
Apache License 2.0
311 stars 135 forks source link

Correctly add `.swiftmodule` directories to the search path. #1245

Closed brentleyjones closed 3 months ago

brentleyjones commented 3 months ago

If a propagated .swiftmodule is ever in a directory-based layout (Name.swiftmodule/$TARGET.swiftmodule), then we need to add the path to the directory containing the top-level module directory, not the path to the .swiftmodule directory itself.

PiperOrigin-RevId: 456263364 (cherry picked from commit 21580ead964dc0e2690ba4bb64ede3293881e258)