Skip to content

Conversation

@luispadron
Copy link
Contributor

Cherry-pick: 634d0d1

The aspect generated a file named <target>.synthesized.swift, which was incorrect if a target had multiple modules in its SwiftInfo.direct_modules field. It would also be incorrect to just switch to <module name>.synthesized.swift, because two targets could potentially re-export the same module.

To fully disambiguate, we create an intermediate directory named for the target, and then use the module name as the filename in that directory.

PiperOrigin-RevId: 740414505

…uts.

The aspect generated a file named `<target>.synthesized.swift`, which was incorrect if a target had multiple modules in its `SwiftInfo.direct_modules` field. It would also be incorrect to just switch to `<module name>.synthesized.swift`, because two targets could potentially re-export the same module.

To fully disambiguate, we create an intermediate directory named for the target, and then use the module name as the filename in that directory.

PiperOrigin-RevId: 740414505
luispadron referenced this pull request May 29, 2025
…uts.

The aspect generated a file named `<target>.synthesized.swift`, which was incorrect if a target had multiple modules in its `SwiftInfo.direct_modules` field. It would also be incorrect to just switch to `<module name>.synthesized.swift`, because two targets could potentially re-export the same module.

To fully disambiguate, we create an intermediate directory named for the target, and then use the module name as the filename in that directory.

PiperOrigin-RevId: 740414505
@luispadron luispadron merged commit c1ad52d into master May 29, 2025
12 checks passed
@luispadron luispadron deleted the luis/cp-634d0d1 branch May 29, 2025 17:38
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.

4 participants