[swift-users] How to define interdependent modules in a package?

Daniel Dunbar daniel_dunbar at apple.com
Thu Dec 24 11:41:45 CST 2015

What we hope to do here eventually is have swiftpm "notice" when a build has failed because of a missing dependency, and then automatically help you update the manifest to include it.

This allows the dependency specifications to continue to be explicit, which some people believe is important for maintenance of a large project, while still having a relatively painless workflow for incremental development.

We don't yet have anyone actively working on this feature, though...

 - Daniel

> On Dec 23, 2015, at 6:50 AM, Pierre Monod-Broca via swift-users <swift-users at swift.org> wrote:
> It would be too costly to do that on each build, among other issues.
> So you do have to add all imported stuff as dependencies.
> If I recall correctly, SPM is planned to have an option to either list you all your imports so you can populate your dependencies, or edit the package manifest itself to add those dependencies.
> -- 
> Pierre
>> Le 23 déc. 2015 à 03:43, Tarun Joshi via swift-users <swift-users at swift.org <mailto:swift-users at swift.org>> a écrit :
>>> Is this in your package file?
>>> targets: [
>>>    Target(
>>>        name: "Foo",
>>>        dependencies: [.Target(name: "Bar")]),
>>>    Target(
>>>        name: "Bar")
>> No. So for each module I write, I need to specify all the imported
>> stuff as dependency?
>> Shouldn't this be automatically picked in the build phase by seeing
>> imports in a file. Am I expecting too much?
>> -- 
>> Regards,
>> `Tarun`
>> _______________________________________________
>> swift-users mailing list
>> swift-users at swift.org <mailto:swift-users at swift.org>
>> https://lists.swift.org/mailman/listinfo/swift-users
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20151224/4ac6e346/attachment.html>

More information about the swift-users mailing list