Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-11784] Support cyclic package dependencies #4649

Open
tkrajacic opened this issue Nov 14, 2019 · 1 comment
Open

[SR-11784] Support cyclic package dependencies #4649

tkrajacic opened this issue Nov 14, 2019 · 1 comment

Comments

@tkrajacic
Copy link

Previous ID SR-11784
Radar rdar://problem/57246619
Original Reporter @tkrajacic
Type New Feature
Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels New Feature
Assignee None
Priority Medium

md5: 3fef5c515fd571c7aef81009a651501e

Issue Description:

It is convenient to separate out default values of a model into a separate package, so they can be used in multiple stacks for testing (E.g. CoreData tests, Fluent tests on the server etc…)

So given a `Model` package, I would like to use a `TestSupport` package that defines default values for various mocks. For that, the `TestSupport` package needs to import `Model` to extend its types.

Now the `Model` package's tests want to import the `TestSupport` package to make use of the mocks in there, but this crashes Xcode and SPM (but correctly reports as cyclic dependency when using the pubgrub resolver)

If SPM supported cyclic dependencies, this would allow for very clean separation of packages .

@beccadax
Copy link
Contributor

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants