LonoCloud / lein-voom

Tool for generating artifacts versioned on the most recent git commit sha and commit time.
Eclipse Public License 2.0
97 stars 14 forks source link

`lein-voom` freshens `:dev` dependencies but will not build them. #29

Open jaccarmac opened 10 years ago

jaccarmac commented 10 years ago

I can use lein-voom for freshening my :dev dependencies. That's great. Ideally, I'd like to be able to use it for plugins as well. However, to get said freshened dependencies into my local repository, I have to move them out of that profile temporarily.

project.clj

(defproject goat-stimulator "1.0.0" :description "Stimulate goats for pleasure and profit." :url "goat-stimulator.appspot.com" :license {:name "Unlicense" :url "unlicense.org"} :dependencies [^{:voom {:repo "http://github.com/clojure/clojure"}} [org.clojure/clojure "1.6.0"] ^{:voom {:repo "http://github.com/weavejester/compojure" :branch "master"}} [compojure "1.2.0-20131030_015250-ge8b2abf"]] :plugins [[lein-marginalia "0.8.0-SNAPSHOT"] [lein-midje "3.1.3"] [lein-ring "0.8.10"] [lein-voom "0.1.0-20140314_091121-gbf058e5"]] :profiles {:dev {:dependencies [^{:voom {:repo "http://github.com/marick/Midje" :branch "master"}} [midje "1.7-20140202_113009-g33a954a"] ^{:voom {:repo "http://github.com/weavejester/ring-mock"}} [ring-mock "0.1.5-20130523_103243-g43c3cb9"]]}} :ring {:handler goat-stimulator.handler/app})

lein voom freshen

Fetching: http://github.com/weavejester/ring-mock (aHR0cDovL2dpdGh1Yi5jb20vd2VhdmVqZXN0ZXIvcmluZy1tb2Nr) Fetching: http://github.com/clojure/clojure (aHR0cDovL2dpdGh1Yi5jb20vY2xvanVyZS9jbG9qdXJl) Fetching: http://github.com/marick/Midje (aHR0cDovL2dpdGh1Yi5jb20vbWFyaWNrL01pZGpl) Fetching: http://github.com/weavejester/compojure (aHR0cDovL2dpdGh1Yi5jb20vd2VhdmVqZXN0ZXIvY29tcG9qdXJl) No matching version found for: org.clojure/clojure {:repo "http://github.com/clojure/clojure", :allow-snaps false, :freshen true} org.clojure/clojure 1.6.0 compojure/compojure 1.2.0-20131030_015250-ge8b2abf org.clojure/tools.nrepl 0.2.3 clojure-complete/clojure-complete 0.2.3 compliment/compliment 0.0.3 midje/midje 1.7-20140202_113009-g33a954a ring-mock/ring-mock 0.1.5-20130523_103243-g43c3cb9 No versions bumped.

lein voom build-deps

-- build-deps for goat-stimulator

lein with-profile dev build-deps

-- build-deps for goat-stimulator

lein midje

Could not find artifact midje:midje:jar:1.7-20140202_113009-g33a954a in central (http://repo1.maven.org/maven2/) Could not find artifact midje:midje:jar:1.7-20140202_113009-g33a954a in clojars (https://clojars.org/repo/) Could not find artifact ring-mock:ring-mock:jar:0.1.5-20130523_103243-g43c3cb9 in central (http://repo1.maven.org/maven2/) Could not find artifact ring-mock:ring-mock:jar:0.1.5-20130523_103243-g43c3cb9 in clojars (https://clojars.org/repo/) This could be due to a typo in :dependencies or network issues. If you are behind a proxy, try setting the 'http_proxy' environment variable.

abrooks commented 10 years ago

Sorry for not ack'ing this earlier. I just saw it now.

We know the fix but it will take semi-some significant changes in how we parse and update the project.clj.

jaccarmac commented 10 years ago

Thanks!

Sounds good. The solution, of course, is to either:

  1. Temporarily move dependencies from :dev and into the main vector, then move them back after a lein voom build-deps.
  2. Don't worry about voom-versioning :dev dependencies.

In any case, thanks for a wonderful tool; bug fixes and documentation will come in time, I know.

moquist commented 10 years ago

Here's a related reproduction of this and another issue: https://github.com/vlacs/flare/tree/voom-boom

I only filed this via IRC earlier, so I figured I should link it here, too. :)

[Edit: Bah! Looks like somebody deleted the voom-boom branch.]

abrooks commented 10 years ago

Thanks, @moquist!