2016-02-27 33 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" 

希望帮助