Skip to content

Conversation

@pepicrft
Copy link
Contributor

Summary

  • Adds a traits field to PackageConditionDescription to support decoding trait conditions from Swift Package manifests
  • When a package dependency has a condition like .when(traits: ["SQLCipher"]), the traits array will now be properly decoded

This is needed to fix tuist/tuist#9218 where Tuist fails to generate projects for packages using SPM traits like SQLite.swift with the SQLCipher trait.

This allows decoding trait conditions from Swift Package manifests.
When a package dependency has a condition like `.when(traits: ["SQLCipher"])`,
the traits array will now be properly decoded.
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jan 22, 2026
@dosubot dosubot bot added the enhancement New feature or request label Jan 22, 2026
@pepicrft pepicrft requested review from a team, cschmatzler and fortmarek and removed request for a team January 22, 2026 17:51
@pepicrft pepicrft self-assigned this Jan 22, 2026
@pepicrft pepicrft removed the request for review from cschmatzler January 22, 2026 17:51
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 22, 2026
@pepicrft pepicrft merged commit 02d1f19 into main Jan 22, 2026
7 checks passed
@pepicrft pepicrft deleted the fix-trait-conditions branch January 22, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug on how Tuist transform Swift Package with Triats

3 participants