<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Ankit,<div class=""><br class=""></div><div class="">Ok, thanks. I filed a bug:&nbsp;<a href="https://bugs.swift.org/browse/SR-4554" class="">https://bugs.swift.org/browse/SR-4554</a></div><div class=""><br class=""></div><div class="">Best regards</div><div class="">Toni</div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">Am 10.04.2017 um 17:38 schrieb Ankit Aggarwal &lt;<a href="mailto:ankit_aggarwal@apple.com" class="">ankit_aggarwal@apple.com</a>&gt;:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi Toni,<div class=""><br class=""></div><div class="">This looks like a bug, can you file a JIRA at <a href="http://bugs.swift.org/" class="">bugs.swift.org</a>?</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, Apr 6, 2017 at 9:10 PM, Toni Suter via swift-users <span dir="ltr" class="">&lt;<a href="mailto:swift-users@swift.org" target="_blank" class="">swift-users@swift.org</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Hi everyone,<br class=""><br class="">I would like to obtain detailed information about a package and all its dependencies in an automated fashion. At first I thought that&nbsp;the<div class="">two commands "<font face="Menlo" class="">swift package describe"</font>&nbsp;and "<font face="Menlo" class="">swift package show-dependencies</font>" are a perfect fit for that. More concretely,</div><div class="">I wanted to perform the following commands:</div><div class=""><div class=""><br class="">1. Execute the command "<font face="Menlo" class="">swift package fetch</font>" to make sure that all dependencies are downloaded</div><div class=""><br class="">2. Execute the command "<font face="Menlo" class="">swift package show-dependencies --format json</font>" to obtain a description of<br class="">each package (i.e., name, path, etc.) as well as the dependency relationship between the packages.</div><div class=""><br class="">3. For each package, do the following to obtain information about the modules in that package:<br class=""><span class="m_4750577202223738220Apple-tab-span" style="white-space:pre-wrap">        </span><font face="Menlo" class="">cd path-of-package</font><br class=""><span class="m_4750577202223738220Apple-tab-span" style="white-space:pre-wrap">        </span><font face="Menlo" class="">swift package describe --type json</font></div></div><div class=""><br class=""></div><div class="">However, if a package has dependencies, the command "<font face="Menlo" class="">swift package describe --type json"</font> will perform another fetch.</div><div class="">I am not sure why this is necessary since the output of that command only contains information about the individual modules of</div><div class="">the package. Unfortunately, this means that the same dependencies are downloaded multiple times if a package's dependencies have</div><div class="">themselves further dependencies, which makes the process above quite slow. Is this a bug or is there another way to retrieve the same information?</div><div class=""><br class=""></div><div class="">Thanks and best regards</div><span class="HOEnZb"><font color="#888888" class=""><div class="">Toni</div></font></span></div><br class="">______________________________<wbr 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" rel="noreferrer" target="_blank" class="">https://lists.swift.org/<wbr class="">mailman/listinfo/swift-users</a><br class="">
<br class=""></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></body></html>