2016-02-27 47 views
0

我得到當我嘗試做了以下錯誤一git push heroku master的Heroku構建失敗,並推動Clojure的項目

remote: Retrieving ring/ring-jetty-adapter/1.4.0/ring-jetty-adapter-1.4.0.jar from clojars 
remote: Could not transfer artifact clj-http:clj-http:pom:2.1.0 from/to clojars (https://clojars.org/repo/): Error occurred while retrieving from remote repository Repository[clojars|https://clojars.org/repo/]: Not in GZIP format 
remote: Could not transfer artifact clj-json:clj-json:pom:0.5.3 from/to clojars (https://clojars.org/repo/): Error occurred while retrieving from remote repository Repository[clojars|https://clojars.org/repo/]: Not in GZIP format 
remote: Could not transfer artifact clojure-csv:clojure-csv:pom:2.0.2 from/to clojars (https://clojars.org/repo/): Error occurred while retrieving from remote repository Repository[clojars|https://clojars.org/repo/]: Not in GZIP format 
remote: Could not transfer artifact enlive:enlive:pom:1.1.6 from/to clojars (https://clojars.org/repo/): Error occurred while retrieving from remote repository Repository[clojars|https://clojars.org/repo/]: Not in GZIP format 
remote: Could not transfer artifact hiccup:hiccup:pom:1.0.5 from/to clojars (https://clojars.org/repo/): Error occurred while retrieving from remote repository Repository[clojars|https://clojars.org/repo/]: Not in GZIP format 
remote: Could not transfer artifact tinter:tinter:pom:0.1.1-20120609.171400-1 from/to clojars (https://clojars.org/repo/): Error occurred while retrieving from remote repository Repository[clojars|https://clojars.org/repo/]: Not in GZIP format 
remote: Could not transfer artifact clj-time:clj-time:pom:0.11.0 from/to clojars (https://clojars.org/repo/): Error occurred while retrieving from remote repository Repository[clojars|https://clojars.org/repo/]: Not in GZIP format 
remote: Could not transfer artifact jayq:jayq:pom:2.5.4 from/to clojars (https://clojars.org/repo/): Error occurred while retrieving from remote repository Repository[clojars|https://clojars.org/repo/]: Not in GZIP format 
remote: Could not transfer artifact midje:midje:pom:1.8.3 from/to clojars (https://clojars.org/repo/): Error occurred while retrieving from remote repository Repository[clojars|https://clojars.org/repo/]: Not in GZIP format 
remote: Could not transfer artifact ring-mock:ring-mock:pom:0.1.5 from/to clojars (https://clojars.org/repo/): Error occurred while retrieving from remote repository Repository[clojars|https://clojars.org/repo/]: Not in GZIP format 
remote: Could not transfer artifact print-foo:print-foo:pom:1.0.2 from/to clojars (https://clojars.org/repo/): Error occurred while retrieving from remote repository Repository[clojars|https://clojars.org/repo/]: Not in GZIP format 
remote: This could be due to a typo in :dependencies or network issues. 
remote: 
remote: !  Push rejected, failed to compile Clojure (Leiningen 2) app 

我BUILDPACK_URL:https://github.com/kolov/heroku-buildpack-clojure

我看了@以下解決方案:Heroku Push Rejected some references to some heroku app I don't have但它似乎沒有幫助。

回答

1

看起來你正在使用分揀的buildpack,比正式的Heroku buildpack(3年前)要舊。你的buildpack也在使用萊寧寧的老版本。

我建議通過運行切換爲默認buildpack:

$ heroku buildpacks:set heroku/clojure 

,或通過升級您的自定義buildpack通過改變this line要使用較新的雷音版本:

LEIN_VERSION="2.6.1" 

希望幫助