Closed borkdude closed 4 months ago
A repro purely with rewrite-edn:
(-> (e/parse-string "{}") (e/assoc-in [:deps 'org.clojure/clojure] {:mvn/version "1.10.2"}) str e/parse-string (e/assoc-in [:deps 'org.foo/foo :mvn/version] "1.10.2") str)
;; =>
"{:deps {org.clojure/clojure {:mvn/version \"1.10.2\"} org.foo/foo {:mvn/version \"1.10.2\"}}}"
Also reported here: https://github.com/borkdude/rewrite-edn/issues/36
Sure, here is a (hopefully) reproducible steps:
docker run --rm -it --platform linux/amd64 homebrew/brew:4.2.15 /bin/bash
brew install babashka/brew/neil
,brew install java
.echo {:deps {}} > deps.edn
neil add dep com.s-exp/hirundo
neil add dep metosin/malli
cat deps.edn
In my m1 max mac, step 3 ~ 6 in a
tmp/xx
folder will suffice to reproduce it. I added step 1 and 2 for better reproducibility.Originally posted by @zhming0 in https://github.com/babashka/neil/discussions/208#discussioncomment-8901760