-
-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parse-map
stop working when upgrade from 3.2.0 to 3.3.0
#289
Comments
Thanks to @zerg000000 for the report!
@zerg000000 Hi Albert, thanks for the report and sorry about the trouble! I've just pushed https://github.com/taoensso/carmine/releases/tag/v3.3.1 to Clojars with a hotfix 👍 |
Thanks for your prompt reply! |
@ptaoussanis don't know what's getting wrong (deftest test-as-map
(is (= {:a 1 :b 2}
(as-map ["a" "1" "b" "2"]
(fn [k _] (keyword k))
(fn [_ v] (parse-long v)))))
(is (= {"A" "1" "B" "2"}
(as-map ["a" "1" "b" "2"]
(fn [k _] (.toUpperCase k)))
"keys should be converted to uppercase"))
(is (= {:a 1 :b 2}
(as-map ["a" "1" "b" "2"] :keywordize))
"keys should be converted to keywords"))
FAIL in baba.processor-test/test-as-map (processor_test.clj:26)
Expected:
{"A" "1", "B" "2"}
Actual:
{"A" -"1" +"a", "B" -"2" +"b"}
-{"A" "1", "B" "2"} +"keys should be converted to uppercase"
FAIL in baba.processor-test/test-as-map (processor_test.clj:30)
keys should be converted to keywords
Expected:
{:a 1, :b 2}
Actual:
{+"1" "a", +"2" "b", -:a 1, -:b 2} |
Ack, I had a stupid typo in the hotfix that I somehow missed 🤦 Should actually be fixed now in https://github.com/taoensso/carmine/releases/tag/v3.3.2, really sorry about!! |
Hi, Just upgraded to 3.3.1 from 3.3.0 and I now get this: class taoensso.carmine.protocol.Context cannot be cast to class taoensso.carmine.protocol.Context (taoensso.carmine.protocol.Context is in unnamed module of loader clojure.lang.DynamicClassLoader @2e95d163; taoensso.carmine.protocol.Context is in unnamed module of loader 'app' Reverting to 3.3.0 for now. Will try out 3.3.2 |
@dharrigan Hi David, that should be unrelated and sounds like you might have stale build artifacts. Please try running Edit to add for clarity: the typo in 3.3.1 shouldn't affect anyone that wasn't already broken by 3.3.0. I.e. the intended hotfix wasn't successful, but shouldn't introduce any other issues. |
Interestingly, it builds from a clean CI environment each time. However, will try. If it persists, I'll raise a separate issue. -=david=- |
@dharrigan Fwiw I have seen various CI environments do build caching as a performance optimization. But yes, please do create a new issue in case you're still running into trouble! |
Thanks for the fix! |
@ptaoussanis yup, seems like it was a build issue. Unable to reproduce. :-) |
in
3.2.0
, it is using 3-arityenc/as-map
, but in3.3.0
it is now usingas-map
intaoensso.carmine
which is 1-arity.carmine/src/taoensso/carmine.clj
Line 169 in af4bea1
The code using
parse-map
works in3.2.0
will failed in3.3.0
withThe text was updated successfully, but these errors were encountered: