This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-08
Channels
- # babashka (1)
- # babashka-sci-dev (42)
- # beginners (3)
- # calva (9)
- # clj-kondo (1)
- # cljs-dev (1)
- # clojure (52)
- # clojure-europe (3)
- # clojure-spec (6)
- # clojurescript (35)
- # defnpodcast (1)
- # guix (1)
- # honeysql (3)
- # hugsql (4)
- # humbleui (1)
- # introduce-yourself (3)
- # jobs (1)
- # jobs-discuss (9)
- # lsp (57)
- # off-topic (65)
- # polylith (4)
- # portal (11)
- # releases (1)
- # remote-jobs (2)
- # shadow-cljs (19)
- # tools-deps (4)
- # vim (11)
- # xtdb (8)
Is there a way to run a tool without installing it first? In CI environments, itโd be nice to be able to just specify a tool (and optionally a version) and use it without having to install it first. Prompted by https://github.com/rm-hull/nvd-clojure/issues/142#issuecomment-1120490553, I had a similar issue
Yes. I use an aliases with -T execution option to run all the tools I use.
The alias allows me to specify the version and any default options via :exec-opts
when running the tool
It also means I don't have to specify install the tool before using it
For example, I use clojure -T:search/outdated
alias to find libraries with newer versions, excluding some commercial libraries https://github.com/practicalli/clojure-deps-edn/blob/live/deps.edn#L360-L385
@danielcompton Pretty much all tools can be run via git deps and specifying the fully-qualified name of the functions that are entry points for the tools.
I thought I had an example for deps-new
but it's not in the README so I think I only posted it in #calva -- just a sec...