|
17 | 17 | (def i18n-version "1.0.3") |
18 | 18 | (def logback-version "1.3.16") |
19 | 19 | (def jackson-version "2.21.1") |
| 20 | +;; DO NOT UPGRADE PAST 1.14+! In 1.15.x, Content-Length is added to the |
| 21 | +;; response headers automatically rather than transferring it chunked, |
| 22 | +;; and also string flushing behavior is changed, and some part of the system |
| 23 | +;; does not handle one or both of these correctly. We need to debug this and |
| 24 | +;; fix it before upgrading. |
| 25 | +(def ring-core-version "1.14.2") |
20 | 26 |
|
21 | 27 | (require '[clojure.string :as str] |
22 | 28 | '[leiningen.core.main :as main]) |
|
32 | 38 |
|
33 | 39 | (fail-if-logback->1-3! logback-version) |
34 | 40 |
|
| 41 | +(defn fail-if-ring-core->1-14! |
| 42 | + "Fails the build if ring-core version is > 1.14.x." |
| 43 | + [ring-core-version] |
| 44 | + (let [[x y] (->> (str/split (str ring-core-version) #"\.") |
| 45 | + (take 2) ;; keep major and minor versions |
| 46 | + (map #(Integer/parseInt %)))] |
| 47 | + (when (or (> x 1) ;; major version is greater than 1 |
| 48 | + (and (= x 1) (> y 14))) ;; major version is 1 and minor version is greater than 14 |
| 49 | + (main/abort (format "ring-core version %s is not supported. Must be 1.14.x until performance regression is fixed (#197)." ring-core-version))))) |
| 50 | + |
| 51 | +(fail-if-ring-core->1-14! ring-core-version) |
| 52 | + |
35 | 53 | ;; If you modify the version manually, run scripts/sync_ezbake_dep.rb to keep |
36 | 54 | ;; the ezbake dependency in sync. |
37 | 55 | (defproject org.openvoxproject/puppetserver "8.13.0-SNAPSHOT" |
|
106 | 124 | [prismatic/schema "1.4.1"] |
107 | 125 | [ring-basic-authentication "1.2.0"] |
108 | 126 | [ring/ring-codec "1.3.0"] |
109 | | - ;; DO NOT UPGRADE PAST 1.14+! In 1.15.x, Content-Length is added to the |
110 | | - ;; response headers automatically rather than transferring it chunked, |
111 | | - ;; and also string flushing behavior is changed, and some part of the system |
112 | | - ;; does not handle one or both of these correctly. We need to debug this and |
113 | | - ;; fix it before upgrading. |
114 | | - [ring/ring-core "1.14.2"] |
| 127 | + [ring/ring-core ~ring-core-version] |
115 | 128 | [ring/ring-mock "0.6.2"] |
116 | 129 | [slingshot "0.12.2"]] |
117 | 130 |
|
|
0 commit comments