-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Lein new doesn't use installed snapshot templates (and fails to retrieve from Clojars if present) #1235
Comments
I had an issue with using a template that worked just fine in the previous leinigen version; after the above I removed the SNAPSHOT from the project.clj and the template works fine. I.e. I can confirm the reported behavior. I'll be happy to answer any questions about my setup if needed. |
Due to some weirdness with service-template tests constantly failing on Travis (likely on account of technomancy/leiningen#1235) I've decided to *not* run those tests there and stop hemorrhaging time trying to fix it. I think this is an acceptable risk to take because service-template is a very low-churn sub-project. The consequence of this is that project maintainers will need to be diligent about testing/accepting any pull requests touching that project. This is similar to the current situation with app-template (no CI tests.)
This is now supported in 2.3.4. |
I encountered this issue on lein 2.7.1 and resolved it with @kasterma's workaround of removing SNAPSHOT from my template's project.clj. The template has never been pushed to Clojars. Is this expected behavior?
|
Can you specify what command you used?
|
|
That explains it; you need a |
I just ran into the same problem. Seems to work if I remove -SHAPSHOT suffix from the version prior to "lein install". |
Hey there. Folks on this pedestal-dev thread (and myself) have run into a rather interesting set of circumstances that seem to force leiningen to not use a SNAPSHOT template dependency that exists in the local maven repository and fail to fetch that dependency from Clojars if it was installed via
lein sub install
.Steps to reproduce:
Remove any existing pedestal templates
rm -rf ~/.m2/repository/pedestal-*
lein new pedestal-service delete-me
Remove pedestal templates again
rm -rf ~/.m2/repository/pedestal-*
Clone pedestal and
lein sub install
from inside the repositorylein new pedestal-service delete-me
The text was updated successfully, but these errors were encountered: