Skip to content

build: use the sibling OpenCombine checkout when USE_LOCAL_DEPS is set - #1250

Closed
cristim wants to merge 1 commit into
OpenSwiftUIProject:mainfrom
cristim:rfc-local-opencombine
Closed

cristim wants to merge 1 commit into
OpenSwiftUIProject:mainfrom
cristim:rfc-local-opencombine

Conversation

@cristim

@cristim cristim commented Nov 4, 2026

Copy link
Copy Markdown

Summary

RFC, draft, unbuilt. Use ../OpenCombine when USE_LOCAL_DEPS is set, like the other dependencies in Package.swift.

Verification

Run: the commit cherry-picks cleanly onto current main. Not run: no Swift, C or Objective-C compiler was available on the machine used, so this was not compiled and CI is the first real check.

CONTRIBUTING.md asks for an issue or discussion first for large work; this PR is a single small concern. Related RFC draft: #1246.

Make the OpenCombine dependency follow the same switch as the other
dependencies, so a local multi-repository build resolves ../OpenCombine
instead of the remote package.

(cherry picked from commit 2cf8efa)
@cristim

cristim commented Nov 4, 2026

Copy link
Copy Markdown
Author

Cold review: code clean (guards balanced, matches the useLocalDeps style). Unverified risk noted by the reviewer: older compilers may check only the top-level module in canImport(A.B), in which case #1247 would have no effect on the target SDK. Not compiled.

@Kyle-Ye

Kyle-Ye commented Nov 7, 2026

Copy link
Copy Markdown
Member

I do not think we need this for now as we use Combine by default on apple OS. You can keep it in your fork.

Will consider it when we add OpenCombineShims and reduce the xcframework cost.

@Kyle-Ye Kyle-Ye closed this Nov 7, 2026
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.

2 participants