Is there a quick way to get inter-quark dependencies?

The info in the .quark files Isn’t totally reliable as to the actual decencies, but is there a quick way to get a graph of what quark officially declares to depend on some other? I’m particularly interested in finding all quarks that declare to depend on a given quark, even indirectly.

To determine this, you would need every .quark file, everywhere. To get those, you would need either to download every quark (and after that, pretty much every dependency would be satisfied) or to curl the exact “raw” github URL of every quark file (which is theoretically possible for those quarks listed in the main quarks directory)… which means, “is there a quick way?”… seems unlikely.

It’s true that quark authors have, at times, made mistakes about quark dependencies but I’m not sure it’s fair to conclude from this that dependencies are broadly unreliable, by the way.

hjh

(
var installedQuarks, installedQuarkNames, quarkSearchName;

installedQuarks = Quarks.installed;
installedQuarkNames = installedQuarks.collect{ |quark| quark.name.asSymbol };
quarkSearchName = 'atk-sc3';

installedQuarks.at(installedQuarkNames.indexOf(quarkSearchName)).deepDependencies.collect(_.name).sort.printAll
)

prints:

ExtraWindows
FileLog
Hilbert
MathLib
MatrixArray
PointView
SignalBox
SphericalDesign
XML
wslib
1 Like