<div dir="ltr">Hi Toni,<div><br></div><div>This looks like a bug, can you file a JIRA at <a href="http://bugs.swift.org">bugs.swift.org</a>?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 6, 2017 at 9:10 PM, Toni Suter via swift-users <span dir="ltr"><<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi everyone,<br><br>I would like to obtain detailed information about a package and all its dependencies in an automated fashion. At first I thought that the<div>two commands "<font face="Menlo">swift package describe"</font> and "<font face="Menlo">swift package show-dependencies</font>" are a perfect fit for that. More concretely,</div><div>I wanted to perform the following commands:</div><div><div><br>1. Execute the command "<font face="Menlo">swift package fetch</font>" to make sure that all dependencies are downloaded</div><div><br>2. Execute the command "<font face="Menlo">swift package show-dependencies --format json</font>" to obtain a description of<br>each package (i.e., name, path, etc.) as well as the dependency relationship between the packages.</div><div><br>3. For each package, do the following to obtain information about the modules in that package:<br><span class="m_4750577202223738220Apple-tab-span" style="white-space:pre-wrap">        </span><font face="Menlo">cd path-of-package</font><br><span class="m_4750577202223738220Apple-tab-span" style="white-space:pre-wrap">        </span><font face="Menlo">swift package describe --type json</font></div></div><div><br></div><div>However, if a package has dependencies, the command "<font face="Menlo">swift package describe --type json"</font> will perform another fetch.</div><div>I am not sure why this is necessary since the output of that command only contains information about the individual modules of</div><div>the package. Unfortunately, this means that the same dependencies are downloaded multiple times if a package's dependencies have</div><div>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><br></div><div>Thanks and best regards</div><span class="HOEnZb"><font color="#888888"><div>Toni</div></font></span></div><br>______________________________<wbr>_________________<br>
swift-users mailing list<br>
<a href="mailto:swift-users@swift.org">swift-users@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-users</a><br>
<br></blockquote></div><br></div>