lein-modules icon indicating copy to clipboard operation
lein-modules copied to clipboard

Enable :version to refer to sub-modules version and not the version of the currently building project

Open alexdforeman opened this issue 10 years ago • 5 comments

Currently :version in dependency versioning refers to the current sub-module's version, which is fine when all submodules are in sync with each other.

In a world where subprojects have differnt versions however this breaks.

It would be really nice that if lein-modules sees a :version it tries to find that project in its source tree and substitutes that version in and then if it cant find it then falls back to the modules version by default.

This should be 100% compatible with what is happening currently, however it would also enable clever version tracking of submodule dependencies which are not all the same.

alexdforeman avatar Jun 05 '15 20:06 alexdforeman

Good idea, thanks! I'll try to look into this soon.

jcrossley3 avatar Jun 05 '15 20:06 jcrossley3

Alex, you can install that #29 branch locally just to see if it addresses your needs, but I'm hesitant to release it as it impacts performance quite a bit.

jcrossley3 avatar Jun 09 '15 17:06 jcrossley3

Thanks Jim, Ill either test it today or first thing tomorrow and get back to you ASAP

alexdforeman avatar Jun 09 '15 17:06 alexdforeman

Jim, I now have the stack working fine using this SNAPSHOT. Could this version be released and pushed to clojars.

Many thanks, its really appreciated.

alexdforeman avatar Jun 22 '15 14:06 alexdforeman

Hi - I am also using this snapshot version to solve the same issue.

cheers

henryw374 avatar Jul 31 '15 16:07 henryw374