-
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
specified reply version in profiles.clj not honored #591
Comments
Considering #582 is one of the biggest problems with preview4, it's important that reply be able to be bumped independently of the rest of Leiningen. |
In order for this to work we actually have to move reply from |
Afaik I don't see any problems with this. Tried it out in XP (removed reply from project.clj from the leiningen checkout and included it in the default profile map as a plugin, built leiningen, moved it to self-installs and tried a repl). This worked. What about @trptcolin ? |
Update: after testing the above, I tried creating a default project and changed the plugin settings to: :plugins [[reply "0.1.0-beta6"]] When starting a repl it downloaded this dependency but it didn't seem to use that reply version, but still the one that was defined in the default profile... To be sure of the reply version in use, I opened this issue on reply: trptcolin/reply#62 |
@borkdude you can always do something like @technomancy So the difference would be that reply wouldn't be included in the leiningen standalone jar? Is it a bootclasspath thing? It seems fine to me, though it might seem a little strange to users to have to download more things even when running a non-project repl. That'll only happen once, though, so maybe not a big deal. |
OK, ran the following test. :plugins [['lein-newnew "0.3.1"] '[reply "0.1.0-beta7"]] in the default profile map. Made an uberjar and used that version from the lein script. Then I made a project which uses this project.clj: (defproject foo6 "0.1.0-SNAPSHOT" When running "lein repl" from this project, it seems to use reply beta7 instead of 6 (no nil printing, no hangs). leiningen.core/project.clj: :plugins [['lein-newnew "0.3.1"]] and built a new version of leiningen which I referred to from the lein script. Then I tried lein repl from a non-project directory, it tells me that "repl" is not a task, which is correct since there is no reference to reply. It seems that the default profile has preference over project-specific settings. |
The intention is that profiles win over the base project map, but the Probably not as big of an issue as not being able to upgrade reply though. Certainly the download-on-demand approach is workable as it's what Maven uses, but it also could have unfortunate consequences for someone who downloads Leiningen and then goes offline without running it. |
Tested also with overriding :dev or :user, but no luck. :default still seems to win. |
I just confirmed here that adding |
I'm still trying to confirm on XP. In %USERPROFILE/.lein/profiles.clj I have put this: {:user {:plugins [[reply "0.1.0-beta6"]]}} |
I tested now on Mac OSX with ~/.lein/profiles.clj having {:user {:plugins [[reply "0.1.0-beta6"]]}} |
I cloned the most recent reply (with fixes for issue #582) and installed it locally, using lein install (changed the version to 1.1.0-local). I specified the following in .lein/profiles.clj:
{:user {:plugins [[reply "1.1.0-local"]]}}
When I start "lein repl" I still get the old REPL (printing nil and hanging).
The text was updated successfully, but these errors were encountered: