Fork me on GitHub
#clj-yaml
<
2022-09-24
>
borkdude09:09:07

You can now get the latest changes of clj-yaml as a git dependency! https://github.com/clj-commons/clj-yaml#use-as-git-dependency

borkdude10:09:47

I published a temp fork of SnakeYAML to io.github.borkdude and wrote a test showing that the leading zero is fixed: https://github.com/clj-commons/clj-yaml/pull/54 I'll update this PR once SnakeYAML 1.33 upstream comes out

borkdude10:09:54

I also deployed a temporary clj-yaml version from this PR branch: io.github.borkdude/clj-yaml {:mvn/version "0.7-1.33-next"} I'm going to test this one in bb now

borkdude10:09:53

$ clj -M:babashka/dev -e "(require '[clj-yaml.core :as yaml]) (yaml/generate-string [\"083\"])"
"['083']\n"

borkdude11:09:30

I published a new bb with the all new snakeyaml + clj-yaml fixes as a temporary dep until all upstreams are streamed down!

🎉 1
babashka 1
🚀 1
lread12:09:56

Great stuff @borkdude! 🚀

lread12:09:34

Also thanks for moving issues->discussions

borkdude12:09:05

Because I didn't know how mvn deployment to clojars worked, I compiled and deployed the lib using tools build 😆 https://github.com/borkdude/SnakeYAML/blob/053b63daa895294dcf55a745aa48f06dfff1dea4/build.clj#L48

lread13:09:21

ha! cool.

grzm13:09:12

It's so nice that clojure.tools.deps can play nice just sitting alongside mvn.

grzm13:09:54

@borkdude what motivated the change from flatland/ordered to frankiesardo/linked? https://github.com/clj-commons/clj-yaml/commit/f45afb231b89bfd2d5a8f60247c97e0da82e8171 ?

borkdude13:09:03

argh, wtf...?

grzm13:09:40

Actually, I think this is a hanging commit out there.

grzm13:09:31

LOL So, let me amend, what motivated the experiment to move flatland/ordered to frankiesardo/linked?

borkdude13:09:43

@grzm I found this: https://clojurians.slack.com/archives/C03S1KBA2/p1585601368388200?thread_ts=1585581040.368800&amp;cid=C03S1KBA2 It had to do with the added binary size of clj-yaml in bb so I investigated the effect of that dependency

slipset15:09:40

I believe we actually removed useful from ordered because of that.

👍 1
borkdude14:09:04

I think as long as it lets us write edn and make other systems happy with the yaml output, it's worth it

grzm14:09:29

I have to (hatefully, reluctantly) agree.

😅 1
borkdude14:09:15

it's just part of the blue collar bash-stained workplace toolset

grzm14:09:26

English vs metric wrenches.

borkdude14:09:33

Past summer I went to the cloud. When I saw kubernetes, I almost jumped off a cliff. (kidding, I haven't touched kubernetes at all, but I like the joke)

😆 1
grzm14:09:19

Okay. Time for breakfast with people smarter than me. Thanks again!

1
borkdude16:09:15

I'm contemplating a new library which smoothens the gap between YAML and several other formats: SnakeOil :drum_with_drumsticks:

simple_smile 1
lread17:09:49

YAML causing you grief? JSON making you pull your hair out? Try SnakeOil! Act now and we’ll throw in XML support. Only 4 easy payments.