liquidz / antq

Point out your outdated dependencies.
Other
395 stars 22 forks source link

check-clojure-tools does not work #159

Closed introom closed 2 years ago

introom commented 2 years ago

check-clojure-tools does not work tools where the installation path is ~/.config/clojure/tools/. ~/.config is $XDG_CONFIG_HOME

The full command that I found this issue is: clojure -Tantq outdated :check-clojure-tools true :upgrade true

liquidz commented 2 years ago

@introom Thanks for your reporting! I fixed the problem in bugfix/tool-dir branch. Could you try?

# install bugfix/tool-dir branch
clojure -Ttools install com.github.liquidz/antq '{:git/url "https://github.com/liquidz/antq" :git/sha "c23871f018c20eff7655f78f2160abdb7cbea510"}' :as antq

# rerun antq as a tool
clojure -Tantq outdated :check-clojure-tools true :upgrade true
introom commented 2 years ago

I've this in my deps.edn config.

           :antq {:extra-deps {com.github.liquidz/antq {:git/url "https://github.com/liquidz/antq"
                                                        :sha "c23871f018c20eff7655f78f2160abdb7cbea510"}}
                  :main-opts ["-m" "antq.core"]}

I run the command under some directory that contains a deps.edn file (otherwise antq will complain no project found).

 clojure -M:antq :check-clojure-tools true :upgrade true

The output is:

All dependencies are up-to-date.

This file ~/.config/clojure/tools/new.edn is unchanged .

image
liquidz commented 2 years ago

@introom You should run clojure -M:antq --check-clojure-tools --upgrade when you use -M

introom commented 2 years ago

Great. It works now.

liquidz commented 2 years ago

Thanks for your confirmation! I'll cut a new release this weekend :)

liquidz commented 2 years ago

@introom Just released v1.6.2 #162 Thank you so much!