tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
jhacks 2020-08-26T21:26:10.084900Z

Trying out antq (https://github.com/liquidz/antq) and depot (https://github.com/Olical/depot) with these one-liners I get many hundreds of lines of DEBUG statements: - clojure -Sdeps '{:deps {antq/antq {:mvn/version "RELEASE"}}}' -m antq.core - clojure -Sdeps '{:deps {olical/depot {:mvn/version "2.0.1"}}}' -m depot.outdated.main Is this normal or is there something up with my system?

seancorfield 2020-08-26T21:30:50.085700Z

@jhacks What do you mean by "hundreds of lines of DEBUG statements"?

seancorfield 2020-08-26T21:31:16.086300Z

I just tried antq.core on a project and got this:

> clojure -Sdeps '{:deps {antq/antq {:mvn/version "RELEASE"}}}' -m antq.core
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See <http://www.slf4j.org/codes.html#StaticLoggerBinder> for further details.

|    :file |                                                           :name |   :version | :latest-version |
|----------+-----------------------------------------------------------------+------------+-----------------|
| deps.edn |                                       com.cognitect/test-runner |            | Failed to fetch |
|          |                                               com.h2database/h2 |    1.4.199 |         1.4.200 |
|          |                              com.microsoft.sqlserver/mssql-jdbc | 8.2.1.jre8 |     8.4.0.jre14 |
|          |                                             com.zaxxer/HikariCP |      3.4.2 |           3.4.5 |
|          |  io.zonky.test.postgres/embedded-postgres-binaries-darwin-amd64 |     12.2.0 |          12.3.0 |
...
which seems perfectly reasonable.

seancorfield 2020-08-26T21:32:04.086600Z

depot produced this

&gt; clojure -Sdeps '{:deps {olical/depot {:mvn/version "2.0.1"}}}' -m depot.outdated.main
Downloading: olical/depot/2.0.1/depot-2.0.1.pom from clojars
Downloading: olical/depot/2.0.1/depot-2.0.1.jar from clojars
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See <http://www.slf4j.org/codes.html#StaticLoggerBinder> for further details.
Checking for old versions in: deps.edn
  org.clojure/java.data {:mvn/version "1.0.78"} -&gt; {:mvn/version "1.0.86"}

jhacks 2020-08-26T21:36:48.087900Z

@seancorfield For this command clojure -Sdeps '{:deps {olical/depot {:mvn/version "2.0.1"}}}' -m depot.outdated.main I get many lines like this before ending with the usual output:

17:35:35.193 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.headers - &lt;&lt; Age: 7291592
17:35:35.193 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.headers - &lt;&lt; X-Served-By: cache-bwi5137-BWI, cache-wdc5525-WDC
17:35:35.193 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.headers - &lt;&lt; X-Cache: HIT, HIT
17:35:35.193 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.headers - &lt;&lt; X-Cache-Hits: 1, 1
17:35:35.193 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.headers - &lt;&lt; X-Timer: S1598477735.173106,VS0,VE1
17:35:35.193 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.impl.client.DefaultHttpClient - Connection can be kept alive indefinitely
17:35:35.194 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.wire -  &lt;&lt; "&lt;html&gt;[\n]"
17:35:35.194 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.wire -  &lt;&lt; "&lt;head&gt;&lt;title&gt;404 Not Found&lt;/title&gt;&lt;/head&gt;[\n]"
17:35:35.194 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.wire -  &lt;&lt; "&lt;body bgcolor="white"&gt;[\n]"
17:35:35.194 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.wire -  &lt;&lt; "&lt;center&gt;&lt;h1&gt;404 Not Found&lt;/h1&gt;&lt;/center&gt;[\n]"
17:35:35.194 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.wire -  &lt;&lt; "&lt;hr&gt;&lt;center&gt;nginx&lt;/center&gt;[\n]"
17:35:35.194 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.wire -  &lt;&lt; "&lt;/body&gt;[\n]"
17:35:35.194 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.wire -  &lt;&lt; "&lt;/html&gt;[\n]"
17:35:35.194 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.wire -  &lt;&lt; "&lt;!-- a padding to disable MSIE and Chrome friendly error page --&gt;[\n]"
17:35:35.194 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.wire -  &lt;&lt; "&lt;!-- a padding to disable MSIE and Chrome friendly error page --&gt;[\n]"
17:35:35.194 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.wire -  &lt;&lt; "&lt;!-- a padding to disable MSIE and Chrome friendly error page --&gt;[\n]"
17:35:35.194 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.wire -  &lt;&lt; "&lt;!-- a padding to disable MSIE and Chrome friendly error page --&gt;[\n]"
17:35:35.194 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.wire -  &lt;&lt; "&lt;!-- a padding to disable MSIE and Chrome friendly error page --&gt;[\n]"
17:35:35.194 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.wire -  &lt;&lt; "&lt;!-- a padding to disable MSIE and Chrome friendly error page --&gt;[\n]"
17:35:35.194 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.wire -  &lt;&lt; "[\n]"
17:35:35.194 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.wire -  &lt;&lt; "[\n]"
17:35:35.194 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.wire -  &lt;&lt; "[\n]"
17:35:35.194 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.impl.conn.PoolingClientConnectionManager - Connection [id: 49][route: {s}-&gt;<https://repo1.maven.org:443>] can be kept alive indefinitely
17:35:35.194 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.impl.conn.PoolingClientConnectionManager - Connection released: [id: 49][route: {s}-&gt;<https://repo1.maven.org:443>][total kept alive: 1; route allocated: 1 of 50; total allocated: 1 of 100]
17:35:35.195 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.impl.conn.PoolingClientConnectionManager - Connection manager is shutting down
17:35:35.196 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.impl.conn.DefaultClientConnection - Connection 0.0.0.0:51708&lt;-&gt;199.232.64.209:443 closed
17:35:35.196 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.impl.conn.DefaultClientConnection - Connection 0.0.0.0:51708&lt;-&gt;199.232.64.209:443 closed
17:35:35.197 [clojure-agent-send-off-pool-2] DEBUG org.apache.http.impl.conn.PoolingClientConnectionManager - Connection manager shut down
17:35:35.198 [clojure-agent-send-off-pool-2] DEBUG org.eclipse.aether.internal.impl.TrackingFileManager - Writing tracking file /Users/joe/.m2/repository/selmer/selmer/resolver-status.properties
Checking for old versions in: deps.edn
  cljs-ajax {:mvn/version "0.8.0"} -&gt; {:mvn/version "0.8.1"}
  com.google.javascript/closure-compiler-unshaded {:mvn/version "v20200504"} -&gt; {:mvn/version "v20200719"}
  day8.re-frame/http-fx {:mvn/version "0.1.6"} -&gt; {:mvn/version "0.2.1"}
  metosin/jsonista {:mvn/version "0.2.6"} -&gt; {:mvn/version "0.2.7"}
  org.clojure/core.async {:mvn/version "1.2.603"} -&gt; {:mvn/version "1.3.610"}
  org.postgresql/postgresql {:mvn/version "42.2.14"} -&gt; {:mvn/version "42.2.16"}
  re-frame {:mvn/version "1.0.0"} -&gt; {:mvn/version "1.1.1"}
  thheller/shadow-cljs {:mvn/version "2.10.17"} -&gt; {:mvn/version "2.11.0"}

jhacks 2020-08-26T21:36:55.088200Z

Sorry about the formatting

jhacks 2020-08-26T21:40:45.089Z

For clojure -Sdeps '{:deps {antq/antq {:mvn/version "RELEASE"}}}' -m antq.core I get lines like this:

17:38:47.822 [Finalizer] DEBUG org.apache.http.impl.conn.PoolingClientConnectionManager - Connection manager shut down
17:38:47.822 [Finalizer] DEBUG org.apache.http.impl.conn.PoolingClientConnectionManager - Connection manager is shutting down
17:38:47.823 [Finalizer] DEBUG org.apache.http.impl.conn.DefaultClientConnection - Connection 0.0.0.0:51766&lt;-&gt;151.101.193.128:443 closed
17:38:47.823 [Finalizer] DEBUG org.apache.http.impl.conn.DefaultClientConnection - Connection 0.0.0.0:51766&lt;-&gt;151.101.193.128:443 closed
17:38:47.823 [Finalizer] DEBUG org.apache.http.impl.conn.PoolingClientConnectionManager - Connection manager shut down
17:38:47.823 [Finalizer] DEBUG org.apache.http.impl.conn.PoolingClientConnectionManager - Connection manager is shutting down
17:38:47.823 [Finalizer] DEBUG org.apache.http.impl.conn.DefaultClientConnection - Connection 0.0.0.0:51765&lt;-&gt;199.232.64.209:443 closed
17:38:47.823 [Finalizer] DEBUG org.apache.http.impl.conn.DefaultClientConnection - Connection 0.0.0.0:51765&lt;-&gt;199.232.64.209:443 closed
17:38:47.823 [Finalizer] DEBUG org.apache.http.impl.conn.PoolingClientConnectionManager - Connection manager shut down
17:38:47.825 [Finalizer] DEBUG org.apache.http.impl.conn.PoolingClientConnectionManager - Connection manager is shutting down
17:38:47.825 [Finalizer] DEBUG org.apache.http.impl.conn.DefaultClientConnection - Connection 0.0.0.0:51769&lt;-&gt;199.232.64.209:443 closed
17:38:47.825 [Finalizer] DEBUG org.apache.http.impl.conn.DefaultClientConnection - Connection 0.0.0.0:51769&lt;-&gt;199.232.64.209:443 closed
17:38:47.825 [Finalizer] DEBUG org.apache.http.impl.conn.PoolingClientConnectionManager - Connection manager shut down

|    :file |                                           :name |  :version | :latest-version |
|----------+-------------------------------------------------+-----------+-----------------|
| deps.edn |                                cider/piggieback |     0.5.0 |           0.5.1 |
|          |                             cljs-ajax/cljs-ajax |     0.8.0 |           0.8.1 |
|          |                       com.cognitect/test-runner |           | Failed to fetch |
|          | com.google.javascript/closure-compiler-unshaded | v20200504 |       v20200719 |
|          |                           day8.re-frame/http-fx |     0.1.6 |           0.2.1 |
|          |                                metosin/jsonista |     0.2.6 |           0.2.7 |
|          |                          org.clojure/core.async |   1.2.603 |         1.3.610 |
|          |                       org.postgresql/postgresql |   42.2.14 |         42.2.16 |
|          |                               re-frame/re-frame |     1.0.0 |           1.1.1 |
|          |                            thheller/shadow-cljs |   2.10.17 |          2.11.0 |

jhacks 2020-08-26T21:47:14.090500Z

I’m using clojure from homebrew and just updated it to see if that was causing it, but no change. There isn’t a debug setting somewhere with deps.edn?

jhacks 2020-08-26T21:51:47.092Z

I tried it on another project that uses deps.edn (I only have two) and I don’t get the DEBUG output. It must be something specific to the project. Thanks for trying out the commands on your side @seancorfield!

seancorfield 2020-08-26T21:54:09.093700Z

Something in your project is enabling logging (at debug level) and those DEBUG messages are coming from the machinery that fetches metadata about artifact versions.

seancorfield 2020-08-26T21:55:59.094300Z

You may be able to resolve that by adding org.slf4j/slf4j-nop {:mvn/version "1.7.25"} to your command-line deps when running antq and/or depot @jhacks

jhacks 2020-08-26T21:59:26.095500Z

@seancorfield Wow! That got rid of the DEBUG statements on both of the commands. Thanks so much, that’s good to know about.

seancorfield 2020-08-26T22:00:33.096Z

I use it with clj-new to suppress logging in project templates as it is generating them 🙂

jhacks 2020-08-26T22:05:02.097900Z

Thanks for this video, btw: https://www.youtube.com/watch?v=CWjUccpFvrg I found it very helpful. I’ve been using lein and just getting started with deps.edn. clj-new is on my list to check out. 🙂

practicalli-john 2020-08-26T22:14:46.098100Z

http://practicalli.github.io/clojure/clojure-tools/using-clojure-tools.html covers using Clojure CLI tools and several community tools. Sean and I both have examples of ~/.clojure/deps.edn configurations you may find of use https://github.com/practicalli/clojure-deps-edn

jhacks 2020-08-26T22:20:41.098400Z

Thanks @jr0cket. I found this tip extremely helpful: http://practicalli.github.io/clojure/clojure-tools/deps-edn-aliases.html#only-one-main-namespace

jhacks 2020-08-26T22:21:32.098600Z

A lot of good info there 🙂

seancorfield 2020-08-26T22:23:04.098800Z

The example of mine that John refers to above is at https://github.com/seancorfield/dot-clojure

practicalli-john 2020-08-26T22:25:48.099100Z

I learnt most things from Sean (and Alex too)

😊 1
➕ 3