<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Recent questions tagged tools.tools</title>
<link>https://ask.clojure.org/index.php/tag/tools.tools</link>
<description></description>
<item>
<title>tools.tools install-latest throws sha error with :coord  and never upgrades with :tool</title>
<link>https://ask.clojure.org/index.php/13882/tools-tools-install-latest-throws-error-coord-never-upgrades</link>
<description>&lt;p&gt;Thanks for &lt;a rel=&quot;nofollow&quot; href=&quot;https://clojure.atlassian.net/browse/TDEPS-253&quot;&gt;https://clojure.atlassian.net/browse/TDEPS-253&lt;/a&gt;, however I noticed it doesn't quite work as expected for a fresh install (with &lt;code&gt;:coord&lt;/code&gt;); I get an error due to a missing sha, contrary to the doc string &quot;git coords may omit sha&quot;.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;clj -Ttools install-latest \
:lib org/tool-name \
:coord '{:git/url &quot;git@gitlab.int.org.com:group/subgroup/tool-name.git&quot;}' \
:as tool-name

=&amp;gt;
Execution error (ExceptionInfo) at clojure.tools.deps.extensions.git/eval1656$fn (git.clj:79).
Library org/tool-name has coord with missing sha
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I also found upgrading a tool with saved coordinates (&lt;code&gt;clj -Ttools install-latest :tool tool-name&lt;/code&gt;) always results in &quot;Skipping, newest installed&quot; (because passing the &lt;code&gt;coord&lt;/code&gt; returned by &lt;code&gt;parse-install-latest-args&lt;/code&gt; to &lt;code&gt;install-1&lt;/code&gt; means &lt;code&gt;ext/find-all-versions&lt;/code&gt; is never evaluated). Looks like this issue would affect tools with auto resolved git urls too.&lt;/p&gt;
</description>
<category>Clojure CLI</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/13882/tools-tools-install-latest-throws-error-coord-never-upgrades</guid>
<pubDate>Mon, 13 May 2024 10:24:47 +0000</pubDate>
</item>
<item>
<title>install-latest does not use coords to find versions in self-hosted git</title>
<link>https://ask.clojure.org/index.php/13160/install-latest-does-not-use-coords-find-versions-self-hosted</link>
<description>&lt;p&gt;&lt;code&gt;clojure.tools.tools.api/install-latest&lt;/code&gt; (and  &lt;code&gt;clojure.tools.tools.api/install-1&lt;/code&gt;) don't pass the &lt;code&gt;coord&lt;/code&gt; returned by &lt;code&gt;clojure.tools.deps.tool/resolve-tool&lt;/code&gt; to &lt;code&gt;clojure.tools.deps.extensions/find-all-versions&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;This means it will never find versions for git libs hosted anywhere that isn't supported by &lt;code&gt;clojure.tools.deps.extensions.git/auto-git-url&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;It would be great if this was changed to support updating tools from non-standard git hosts.&lt;/p&gt;
</description>
<category>Clojure CLI</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/13160/install-latest-does-not-use-coords-find-versions-self-hosted</guid>
<pubDate>Tue, 15 Aug 2023 11:11:52 +0000</pubDate>
</item>
<item>
<title>Make tools help more discoverable</title>
<link>https://ask.clojure.org/index.php/11214/make-tools-help-more-discoverable</link>
<description>&lt;p&gt;Although the documentation does mention &lt;code&gt;help/doc&lt;/code&gt; and &lt;code&gt;help/dir&lt;/code&gt;, it's not obvious for users how to get help on tools unless they read the entire doc page carefully.&lt;/p&gt;
&lt;p&gt;It would help users figure out how to use tools if the &lt;code&gt;-Ttools&lt;/code&gt; functions were a bit more verbose and suggested how to get help.&lt;/p&gt;
&lt;p&gt;I don't think much can be done about this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$ clojure -Ttools
No function found on command line or in :exec-fn
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;but adding a &lt;code&gt;help&lt;/code&gt; function would mean that the next thing a user might try could work:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$ clojure -Ttools help
Namespace clojure.tools.tools.api loaded but function not found: help
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Telling users that the following can be used to get a list of available functions or to get more expansive help would guide them to the next function to use:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$ clojure -A:deps -Ttools help/dir
install
list
remove
show
$ clojure -A:deps -Ttools help/doc
...
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In addition, the &lt;code&gt;list&lt;/code&gt; function could suggest how to get help on a specific, installed tool:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$ clojure -Ttools list
TOOL     LIB                              TYPE  VERSION
clj-new  com.github.seancorfield/clj-new  :git  v1.2.362
new      io.github.seancorfield/deps-new  :git  v0.4.0
nvd      io.github.rm-hull/nvd-clojure    :git  4b0c448
poly     io.github.polyfy/polylith        :git  768642a
tools    io.github.clojure/tools.tools    :git  v0.2.1
# add the following (arbitrarily picking the first one, perhaps):
For help with a specific tool, e.g., clj-new:
    clojure -A:deps -Tclj-new help/doc
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The same could be added to the &lt;code&gt;show&lt;/code&gt; function.&lt;/p&gt;
</description>
<category>Tools</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/11214/make-tools-help-more-discoverable</guid>
<pubDate>Wed, 27 Oct 2021 17:17:27 +0000</pubDate>
</item>
<item>
<title>List SHA if version tag not available in clj -Ttools list</title>
<link>https://ask.clojure.org/index.php/11150/list-sha-if-version-tag-not-available-in-clj-ttools-list</link>
<description>&lt;p&gt;If I install a clojure tool with a git SHA, in contrast to using a git tag, and then I do &lt;code&gt;clj -Ttools list&lt;/code&gt;, the &lt;code&gt;Version&lt;/code&gt; column in the output is empty. It would be helpful if the SHA is displayed in the case where there is no version tag.&lt;/p&gt;
</description>
<category>tools.tools</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/11150/list-sha-if-version-tag-not-available-in-clj-ttools-list</guid>
<pubDate>Mon, 11 Oct 2021 03:29:20 +0000</pubDate>
</item>
<item>
<title>help/doc would be useful for -Ttools</title>
<link>https://ask.clojure.org/index.php/10782/help-doc-would-be-useful-for-ttools</link>
<description>&lt;p&gt;Although you can &lt;code&gt;clojure -Ttools show :tool something&lt;/code&gt;, you don't get much information back about it and you can't use the new &lt;code&gt;-X:deps help/doc&lt;/code&gt; on it because it isn't loaded via an alias.&lt;/p&gt;
&lt;p&gt;Please add &lt;code&gt;help/doc&lt;/code&gt; and &lt;code&gt;help/dir&lt;/code&gt; to &lt;code&gt;-Ttools&lt;/code&gt; so that it is easier to get help/documentation for the installed tools.&lt;/p&gt;
</description>
<category>Tools</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/10782/help-doc-would-be-useful-for-ttools</guid>
<pubDate>Wed, 14 Jul 2021 03:26:54 +0000</pubDate>
</item>
</channel>
</rss>