Fork me on GitHub
#tools-deps
<
2021-01-14
>
Chase16:01:56

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?

andy.fingerhut16:01:42

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

Chase16:01:10

Version: 1.10.1.536

andy.fingerhut16:01:23

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

andy.fingerhut16:01:54

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 Vincent16:01:37

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

andy.fingerhut16:01:42

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

Chase16:01:55

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 Vincent16:01:56

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

andy.fingerhut16:01:33

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

andy.fingerhut16:01:12

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

Chase16:01:24

Perfect, exactly what I was wondering.

andy.fingerhut16:01:49

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

Alex Miller (Clojure team)16:01:44

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

andy.fingerhut16:01:27

2020 was a big year for Clojure CLI tools!

Alex Miller (Clojure team)16:01:10

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

seancorfield17:01:28

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

practicalli-johnny18:01:06

@U9J50BY4C 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-johnny18:01:07

If you get problems, delete any .cache directories

practicalli-johnny18:01:19

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

seancorfield19:01:24

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.

👍 3