leiningen

kokonut 2022-09-15T17:24:46.618999Z

I am using Mac and I need to use a specific version (e.g. 2.9.4), which is older than current version. Does anyone have a clue on how this could be done, maybe using brew?

Cora (she/her) 2022-09-17T21:13:37.733649Z

if you use asdf there's a plugin for it https://github.com/miorimmax/asdf-lein

Cora (she/her) 2022-09-17T21:14:03.332669Z

you can set a .tool-versions file per project so it automatically selects the right version for you

vemv 2022-09-15T17:29:43.619359Z

go to the leiningen repo, browse the tag corresponding to the version you want, download that bin/lein file

๐Ÿ’ฏ 1
vemv 2022-09-15T17:30:18.584109Z

you can name it as you wish e.g. lein or lein-alt . upon first run it will download any needed internals

kokonut 2022-09-15T17:31:34.236209Z

Awesome. Let me try.

dpsutton 2022-09-15T17:33:00.449079Z

and you can run lein upgrade 2.9.4 with that script to set whichever version you need

๐Ÿ‘ 1
dpsutton 2022-09-15T17:33:38.756339Z

the versions of lein installed through package managers donโ€™t allow you to change the version