<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Recent questions in tools.deps.graph</title>
<link>https://ask.clojure.org/index.php/questions/contrib-libs/tools-deps-graph</link>
<description></description>
<item>
<title>tools.deps.graph uses an outdated version of tools.deps.alpha that doesn't support :git/sha coordinates</title>
<link>https://ask.clojure.org/index.php/11376/tools-graph-outdated-version-alpha-doesnt-support-coordinates</link>
<description>&lt;p&gt;Repro deps.edn:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;{:deps {io.github.clojure/spec-alpha2 {:git/sha &quot;99456b1856a6fd934e2c30b17920bd790dd81775&quot;}}}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Running &lt;code&gt;clj -X:project/graph-deps&lt;/code&gt;, where project/graph-deps is the following alias in &lt;code&gt;~/.clojure/deps.edn&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;:project/graph-deps
{:replace-paths []
 :replace-deps  {org.clojure/tools.deps.graph {:mvn/version &quot;1.0.63&quot;}}
 :ns-default    clojure.tools.deps.graph
 :exec-fn       graph
 :exec-args     {:output &quot;project-dependencies-graph.png&quot;
                 :size   true}}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Results in:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Library io.github.clojure/spec-alpha2 has missing :sha in coordinate.&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Bumping the &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/clojure/tools.deps.graph/blob/4a103ca8c510295f1608969a6ad237f23e96d74e/deps.edn#L3&quot;&gt;version of tools.deps.alpha&lt;/a&gt; to 0.12.1090 seems to fix the issue&lt;/p&gt;
</description>
<category>tools.deps.graph</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/11376/tools-graph-outdated-version-alpha-doesnt-support-coordinates</guid>
<pubDate>Fri, 10 Dec 2021 12:54:46 +0000</pubDate>
</item>
<item>
<title>Suggestion: color-coding dependency subtrees</title>
<link>https://ask.clojure.org/index.php/9028/suggestion-color-coding-dependency-subtrees</link>
<description>&lt;p&gt;I’ve been trying out &lt;code&gt;tools.deps.graph&lt;/code&gt; today and it’s been very informative.&lt;/p&gt;
&lt;p&gt;Following a hunch, I found that I was able to glean additional insight into my dependency graphs by manually coloring certain root-level branches.&lt;/p&gt;
&lt;p&gt;For example:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://user-images.githubusercontent.com/141844/72276773-b6057e00-35fe-11ea-93e2-5c4bfec3889b.png&quot; alt=&quot;fc4-deps-with-highlight&quot;&gt;&lt;/p&gt;
&lt;p&gt;This made it really easy for me to understand the weight/impact of &lt;em&gt;one&lt;/em&gt; of my top-level dependencies.&lt;/p&gt;
&lt;p&gt;I then floated this idea in &lt;a rel=&quot;nofollow&quot; href=&quot;https://clojurians.slack.com/archives/C6QH853H8&quot;&gt;the #tools-deps channel&lt;/a&gt; in Clojurians Slack:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt; it’d be cool if there was a feature to assign a unique&lt;br&gt;
background color to each branch from the root — might make it easier&lt;br&gt;
to visualize the impact of each root-level dep&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;and Alex Miller suggested I post this suggestion here, with the comment:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;worth playing with. I experimented with a variety of color things, never found something that I thought helped, but I didn't try that!&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;So here we are.&lt;/p&gt;
&lt;p&gt;Thanks Alex!&lt;/p&gt;
&lt;p&gt;(Normally I’d include hyperlinks to the individual messages in the chat app, but the Clojurians Slack runs in an ephemeral mode, so messages are unreachable after a few weeks or so.)&lt;/p&gt;
&lt;p&gt;Logged: &lt;a rel=&quot;nofollow&quot; href=&quot;https://clojure.atlassian.net/browse/TDEPS-146&quot;&gt;https://clojure.atlassian.net/browse/TDEPS-146&lt;/a&gt;&lt;/p&gt;
</description>
<category>tools.deps.graph</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/9028/suggestion-color-coding-dependency-subtrees</guid>
<pubDate>Mon, 13 Jan 2020 20:21:41 +0000</pubDate>
</item>
</channel>
</rss>