Fork me on GitHub
#tools-deps
<
2018-10-27
>
dominicm06:10:23

https://maven.apache.org/shared/maven-artifact-transfer/apidocs/index.html if someone wanted to write a tools.release, the maven library exists to do that šŸ™‚

dominicm06:10:00

I've got a complete first pass of "ednup" a tool for rewriting edn without losing whitespace. It's not great, but it is definitely sufficient to handle resolve tags! Don't expect this to work beyond this commit, I'm going to clean up with new namespaces, but:

{:paths ["src"]
 ;; cool comment
 :deps
 {potemkin {:mvn/version "0.1"}
  tools.deps.alpha {:git/url ""
                    ;; totally rad
                    :tag "tools.deps.alpha-0.5.460"}
  ;; woah dude
  tools.deps.alphax {:git/url ""
                     :tag "tools.deps.alpha-0.5.460"
                     ;; zoom
                     :sha nil}}}
Running
~/src/github.com/SevereOverfl0w/clj-resolve-tags master* 13s
āÆ clj -Sdeps '{:deps {resolve-tags {:git/url "" :sha "44315f501e3b7fba40961563ba7fcfd0441225fa"}}}' -m resolve-tags not-deps.edn
Results in
{:paths ["src"]
 ;; cool comment
 :deps
 {potemkin {:mvn/version "0.1"}
  tools.deps.alpha {:git/url ""
                    ;; totally rad
                    :tag "tools.deps.alpha-0.5.460"
:sha "ca2aa1eb320687ce940a4f142c8d1af8f9a018bc"}
  ;; woah dude
  tools.deps.alphax {:git/url ""
                     :tag "tools.deps.alpha-0.5.460"
                     ;; zoom
                     :sha "ca2aa1eb320687ce940a4f142c8d1af8f9a018bc"}}}

andy.fingerhut19:10:16

Is there already an issue suggesting the addition of a "show version of clj/clojure and exit" option to clj and/or clojure? If not, would one be welcome? Seems useful in some debug interactions between people.

dominicm19:10:36

It does I think? -Sdescribe

andy.fingerhut19:10:16

Got it. thx. Didn't realize that, and didn't see the more traditional -v or --version command line options.

dominicm19:10:14

Have those been added? Neat. I haven't tracked really closely.

andy.fingerhut19:10:29

I don't think so. I didn't see them.

dominicm19:10:54

Ah. I will stick to describe them šŸ˜Š

jeff.terrell23:10:16

I've also been surprised by the lack of -v / --version options, FWIW.