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

default "lein new" overrides lein-newnew #415

Closed
sritchie opened this issue Feb 22, 2012 · 6 comments
Closed

default "lein new" overrides lein-newnew #415

sritchie opened this issue Feb 22, 2012 · 6 comments

Comments

@sritchie
Copy link

I'm trying to instantiate a template w/ lein-newnew on Leiningen 1.7.0, but the default lein new task seems to be catching everything. Here's a test:

lein plugin install lein-newnew 0.1.2

lein templates now produces:

List of 'lein new' templates on the classpath:
default: A basic and general project layout.
plugin: A leiningen plugin project.
template: A skeleton 'lein new' template.

but running lein new template helperproject generates a new project called "helperproject" with a helper.core.clj file. I guess user level plugins are getting squashed?

@Raynes
Copy link
Collaborator

Raynes commented Feb 22, 2012

@technomancy Any idea? ^

@technomancy
Copy link
Owner

I can reproduce this, but I cannot understand it. The classpath clearly has lein-newnew ahead of the self-install jar.

@technomancy
Copy link
Owner

The problem is the .class files from lein's built-in task are of a newer date than the lein-newnew plugin. I don't think there's a fix for this other than a new release of lein-newnew.

@sritchie
Copy link
Author

Would it make sense to name lein-newnew's task something other than lein new? I know it matches because this functionality will be in Leiningen 2.0, but perhaps a new release of lein-newnew with the task aliased as lein generate would prevent this from happening down the road.

@Raynes
Copy link
Collaborator

Raynes commented Feb 22, 2012

I'd really hate to do that. I don't want people instructing users to use 'generate' because of "some nutty bug".

@technomancy
Copy link
Owner

I wonder if I could fake out the timestamps on the .class files for future leiningen releases to be artificially old. This is normally a good feature of Clojure.

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