tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
Chase 2021-01-14T16:02:56.001400Z

I've been seeing folks use like clj -M:new and clj -X:new or whatever but if I put in anything but -A I get an error. What are the other symbols doing and what should I do to get access to them if desired?

practicalli-john 2021-01-16T18:16:06.084500Z

@chase-lambert Version 1.10.1.697 is the magic number when the flags change... but Alex put some nice fixes in since then so use the latest version from http://Clojure.org Getting Started page. Here is a crib sheet of tasks I use and where their definitions come from http://practicalli.github.io/clojure/clojure-tools/using-clojure-tools.html#common-tasks-for-clojure-development

practicalli-john 2021-01-16T18:17:07.084700Z

If you get problems, delete any .cache directories

practicalli-john 2021-01-16T18:18:19.084900Z

The Linux installer will install which ever version you install to the same place, so you only ever have one version installed (the last one you installed with the linux install script) clojure -Sdescribe to see what version is being used

seancorfield 2021-01-16T19:26:24.085200Z

Instead of deleting .cpcache (not .cache), it's better to use -Sforce as a one-off to tell the CLI to recompute the cache for that specified set of aliases and dependencies etc.

👍 1
2021-01-14T16:03:42.001500Z

Do you see a version number near the beginning of the output of clj -h , and if so what is it?

Chase 2021-01-14T16:04:10.001700Z

Version: 1.10.1.536

2021-01-14T16:04:23.001900Z

I don't know what minimum version is required to support the command line options you see, but the one I currently have is 1.10.1.763

2021-01-14T16:04:54.002100Z

If you use homebrew on Linux or macOS, there are brew commands for both upgrading and downgrading the version of the clojure CLI tools. So far I've only ever upgraded.

Alexis Vincent 2021-01-14T16:05:37.002300Z

I seem to remember having to install an alpha version of clojure from brew

2021-01-14T16:05:42.002500Z

I haven't kept track of all of the details of versions and command line option changes for Clojure CLI tools, but I see discussion flying by about it on #tools-deps

Chase 2021-01-14T16:05:55.002700Z

I'm on linux and used the script installer. Can I just repeat those steps with the latest one? Would that override my current one. I would rather not have multiple versions if that is going to trip me up down the line

Alexis Vincent 2021-01-14T16:05:56.002900Z

but that was a while ago. Might be stable release now

2021-01-14T16:07:33.003100Z

1.10.1.763 is the current version mentioned here: https://clojure.org/guides/getting_started

2021-01-14T16:08:12.003300Z

On Linux, you can rerun the shell script installer and it will overwrite the version you installed earlier, no problems.

Chase 2021-01-14T16:08:24.003500Z

Perfect, exactly what I was wondering.

2021-01-14T16:08:49.003700Z

clj -h version number is your friend if you are ever unsure what version you are getting.

alexmiller 2021-01-14T16:09:12.003900Z

tool version history can be found here: https://clojure.org/releases/tools

alexmiller 2021-01-14T16:09:44.004100Z

536 does pre-date the -M/-X support you mentioned in first post

2021-01-14T16:10:27.004300Z

2020 was a big year for Clojure CLI tools!

alexmiller 2021-01-14T16:11:10.004500Z

well, 2019 was as well, this history doesn't go back that far (but see the more detailed changelogs for that)

seancorfield 2021-01-14T17:09:28.004700Z

The clj-new README specifies you need at least 1.10.1.727 (as does depstar's README).