clojure - For a lein project, why is lib/ in .gitignore? -
i'm relatively new clojure , java. why lib folder in lein project not added git repo of lein project? think convenient have necessary jars there distributed development.
in leiningen project, project.clj file dictates project's dependencies, , when run 'lein deps', dependencies listed in project.clj file downloaded lib/. therefore, there's no need check in jars because project.clj in combination 'lein deps' command that's necessary person reproduce same lib/ have. checking in jars redundant , waste of space.
moreover, mblinn points out, it's better pull jars artifact repositories designed purpose of distributing , updating dependencies, rather changing , committing new jars whenever dependency gets updated. true when project depends on snapshot jars, subject frequent change; if checked in jars, you'd have check in new jar every time snapshot gets updated, if rely on 'lein deps' pull jars artifact repos, you'll stay date no effort. non-snapshot jars, updating dependency changing version in project.clj , running 'lein deps' lot easier , faster manually placing jar in lib/ , checking in.
i hope above explanation accessible. if not, , don't understand of concepts discussed, artifact repositories or dependencies, let me know , i'll explain.
Comments
Post a Comment