<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">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.<div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">We don't yet have anyone actively working on this feature, though...</div><div class=""><br class=""></div><div class="">&nbsp;- Daniel</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 23, 2015, at 6:50 AM, Pierre Monod-Broca via swift-users &lt;<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">It would be too costly to do that on each build, among other issues.</div><div class=""><br class=""></div><div class="">So you do have to add all imported stuff as dependencies.</div><div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">
<div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">--&nbsp;</div><div class="">Pierre</div></div>
</div>
<br class=""><div class=""><blockquote type="cite" class=""><div class="">Le 23 déc. 2015 à 03:43, Tarun Joshi via swift-users &lt;<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>&gt; a écrit :</div><br class="Apple-interchange-newline"><div class=""><div class=""><blockquote type="cite" class="">Is this in your package file?<br class="">targets: [<br class=""> &nbsp;&nbsp;&nbsp;Target(<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name: "Foo",<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dependencies: [.Target(name: "Bar")]),<br class=""> &nbsp;&nbsp;&nbsp;Target(<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name: "Bar")<br class=""></blockquote><br class="">No. So for each module I write, I need to specify all the imported<br class="">stuff as dependency?<br class="">Shouldn't this be automatically picked in the build phase by seeing<br class="">imports in a file. Am I expecting too much?<br class=""><br class=""><br class="">-- <br class="">Regards,<br class="">`Tarun`<br class="">_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-users" class="">https://lists.swift.org/mailman/listinfo/swift-users</a><br class=""></div></div></blockquote></div><br class="">
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=AdkfTiApI80cNEyortTzHbERtY5det-2FDBvSxuhs4q2MqymmZOlJu9Nu-2FuqLeDmNg9TT-2B-2FZhnawmsrLGDYs6yxOO102dxMs-2FAythJg06hDHR1p2yX0eWBHDhxfXBjEMceohB7DSapODISBgxWlMyfcb-2BMA3MO0IgNE-2F8wx5ZE-2F61-2BbiTjx6pPPbuiNKIQ2N2SaYevvV25xqEOYsYjs44bSS5GeoGCSMp5k6i5g2T6k64-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;" class="">
</div>
_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></blockquote></div><br class=""></div></body></html>