Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to pin lein to a specific version #2186

Closed
raags opened this issue Aug 10, 2016 · 2 comments
Closed

Ability to pin lein to a specific version #2186

raags opened this issue Aug 10, 2016 · 2 comments

Comments

@raags
Copy link

raags commented Aug 10, 2016

I see that the script exports LEIN_VERSION right at the top; can we source a file say ~/$LEIN_HOME/lein-version and use that instead? Use case would be to pin lein to a specific version, and upgrade when needed/tested.

@hypirion
Copy link
Collaborator

hypirion commented Aug 30, 2016

I don't think that's necessary – first and foremost, we have lein upgrade vsn and lein downgrade vsn, so if you wanted to change to version 2.4.0 for example, you could just do lein downgrade 2.4.0.

The scripts are also standalone, so I tend to just copy the lein file when a new release comes out; You can e.g. copy the lein script to lein-2.4.0 and then do lein-2.4.0 downgrade 2.4.0 if you want it to refer to 2.4.0.

@technomancy
Copy link
Owner

If you want all users to be on the same version of Leiningen, I recommend copying bin/lein into the project repo itself and using that.

I would accept a patch to warn or abort on a mismatch, but it won't do any good for versions that already exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants