Fork me on GitHub
#leiningen
<
2022-09-15
>
kokonut17:09:46

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?

vemv17:09:43

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

💯 1
vemv17:09:18

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

kokonut17:09:34

Awesome. Let me try.

dpsutton17:09:00

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

👍 1
dpsutton17:09:38

the versions of lein installed through package managers don’t allow you to change the version

Cora (she/her)21:09:37

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

Cora (she/her)21:09:03

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