<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" 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="Apple-tab-span" style="white-space:pre">        </span><font face="Menlo" class="">cd path-of-package</font><br class=""><span class="Apple-tab-span" style="white-space:pre">        </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><div class="">Toni</div></body></html>