Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

feat: add traits field to PackageConditionDescription#470

Merged
pepicrft merged 1 commit intomainfrom
fix-trait-conditions
Jan 22, 2026
Merged

feat: add traits field to PackageConditionDescription#470
pepicrft merged 1 commit intomainfrom
fix-trait-conditions

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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

2 participants