This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-05
Channels
- # announcements (10)
- # beginners (59)
- # calva (172)
- # cider (13)
- # clj-kondo (1)
- # cljdoc (10)
- # cljs-dev (4)
- # cljsrn (65)
- # clojure (144)
- # clojure-europe (2)
- # clojure-italy (26)
- # clojure-losangeles (1)
- # clojure-nl (14)
- # clojure-spec (26)
- # clojure-uk (91)
- # clojurescript (75)
- # core-async (53)
- # cursive (11)
- # datomic (16)
- # fulcro (42)
- # graalvm (29)
- # graphql (9)
- # kaocha (3)
- # leiningen (22)
- # off-topic (26)
- # qa (1)
- # re-frame (3)
- # reagent (7)
- # reitit (10)
- # rewrite-clj (56)
- # robots (1)
- # shadow-cljs (107)
- # spacemacs (10)
- # specter (5)
- # sql (15)
- # tools-deps (39)
- # vim (11)
@alexmiller Hey, I just came back from a longer break and noticed tools-deps is finally available on windows, which is pretty awesome, thanks 🙂
give it a whirl
Yea, I just did and after I allowed myself to run unsigned scripts in the powershell installation worked and I can run it
Hi all, why is sha
required for a :git/url
? Is it possible to automatically use master branch?
clj
startup performance is based building a classpath once and caching it for the same deps.edn file
Ah makes sense. It doesn’t have a record of the local version.
I was just hoping to achieve some function like npm
or pip
or other package mangers.
@markx If you really want to be able to add libraries from master, you can do something like this https://github.com/seancorfield/dot-clojure/blob/master/deps.edn#L106-L119
I still need to wire my brain to connect the repl and the cli tool. I understand the code but don’t know how to do it on cli.
What I really really want is something like clj install xxx
then I can just run xxx
from my shell.
What I really don’t like is to build or download a jar and manually put it into PATH.
it doesn't have direct support for installing global aliases right now. but it does have a plum add
command that adds a dependency to a local deps.edn
@U4YGF4NGM do you have a plan to preserve whitespace when you do this?
no, it will preserve comments. that is why I moved to using cljfmt / rewrite-clj in the first place
yep 😄 cljfmt is there for formatting, and then rewrite-clj for actually doing the addition: https://github.com/Lokeh/plum/blob/master/clj/src/plum/add.clj#L56
I had some users get quite annoyed that they lost their carefully aligned arguments when I first added this, just fyi
that makes sense. I wish there was a way to do preserving modifications of EDN better
I wonder if we could format the modification and then assoc that using rewrite-clj to not mess with the rest of the file?
What I did in ednup was look at the previous key, and match the whitespace based on that