Re: [ANN] Git Deps for Clojure!

2018-01-18 Thread Alex Miller
> On Jan 18, 2018, at 3:37 AM, Isaac Tsang wrote: > > can `clj` AOT automatically, and then cache it (save to some directory). > some dependencies need very long time for `require` Not yet. :) We are working on something along these lines. -- You received this message

Re: [ANN] Git Deps for Clojure!

2018-01-18 Thread Isaac Tsang
can `clj` AOT automatically, and then cache it (save to some directory). some dependencies need very long time for `require` On Saturday, January 6, 2018 at 2:49:15 AM UTC+8, Alex Miller wrote: > > Pleased to announce some new functionality for clj and tools.deps! > >

Re: [ANN] Git Deps for Clojure!

2018-01-15 Thread Kurt Harriger
> > > > >> I’d really like a dependency system that makes each dep’s transitive >> dependencies only visible to itself, so there would never be any reason to >> resolve dependencies. >> > > You need classloader support for this and indeed this is what OSGi and > some early versions of the

Re: [ANN] Git Deps for Clojure!

2018-01-09 Thread Alex Miller
Yeah, we didn't love doing it, but that's why tools.deps.alpha is still alpha. Given that no one is using it yet, it seemed like the most expedient solution. Over time, we will work harder to avoid things like that. On Tuesday, January 9, 2018 at 9:47:15 PM UTC-6, Bobby Eickhoff wrote: > > I

Re: [ANN] Git Deps for Clojure!

2018-01-09 Thread Bobby Eickhoff
I find it somewhat ironic given all of the recent discussion of growth vs. breakage in the world of Clojure that this latest release of clojure tools -- if I understand correctly -- includes, as advertised above, a breaking change. :-P On Tuesday, January 9, 2018 at 9:44:12 AM UTC-5, Alex

Re: [ANN] Git Deps for Clojure!

2018-01-09 Thread Alex Miller
There is a new version of clojure tools available (1.9.0.302) that changes the attributes for git coordinates: :rev - removed attribute :sha - new required attribute, full sha strongly encouraged (prefix sha support may be removed) :tag - new optional attribute, should match the sha (not used

Re: [ANN] Git Deps for Clojure!

2018-01-08 Thread Alex Miller
On Monday, January 8, 2018 at 2:47:23 AM UTC-6, Gary Verhaegen wrote: > > Have you considered adding an equivalent to lein’s pedantic option, i.e. > an option that would die on ambiguous versions rather than make a choice, > thereby forcing users to make that choice explicit as a top-level

Re: [ANN] Git Deps for Clojure!

2018-01-08 Thread Nathan Fisher
You could do it by “rooting” the package (aka change the package path). Most JVM languages root their dependencies to avoid collisions with user space dependencies. ASM is the most common Clojure does and I think Kotlin and Scala do as well. I think Guavas murmur3 is rooted in Clojure as well for

Re: [ANN] Git Deps for Clojure!

2018-01-08 Thread Gary Verhaegen
Have you considered adding an equivalent to lein’s pedantic option, i.e. an option that would die on ambiguous versions rather than make a choice, thereby forcing users to make that choice explicit as a top-level entry? (Or through exclusions etc.) As an aside, is it even possible on the JVM

Re: [ANN] Git Deps for Clojure!

2018-01-07 Thread Alex Miller
On Sun, Jan 7, 2018 at 6:53 PM, Nathan Fisher wrote: > I strongly agree with your decision of “pick the latest”. While I do > understand multiple active versions can make it easier for a developer I > don’t think that’s the “right” decision. Besides I can only imagine

Re: [ANN] Git Deps for Clojure!

2018-01-07 Thread Nathan Fisher
Hi Alex, Sounds great! I strongly agree with your decision of “pick the latest”. While I do understand multiple active versions can make it easier for a developer I don’t think that’s the “right” decision. Besides I can only imagine how much of a pain it would be to implement reliably. I’d

Re: [ANN] Git Deps for Clojure!

2018-01-07 Thread Alex Miller
On Sunday, January 7, 2018 at 5:45:22 PM UTC-6, Alan Thompson wrote: > > Hey - I love the idea. However, I'm getting an error message trying to > run the example: > > ~/work/fred > cat deps.edn > {:deps > {github-clj-time/clj-time > {:git/url "https://github.com/clj-time/clj-time; :rev

Re: [ANN] Git Deps for Clojure!

2018-01-07 Thread Alex Miller
On Sunday, January 7, 2018 at 3:41:34 PM UTC-6, Nathan Fisher wrote: > > > Not sure I would want to see duplicates either. If my code breaks because > of an old dependency I’d rather that than make the false assumption that > I’m running securely with the latest version of a lib. >

Re: [ANN] Git Deps for Clojure!

2018-01-07 Thread Alan Thompson
Hey - I love the idea. However, I'm getting an error message trying to run the example: ~/work/fred > cat deps.edn {:deps {github-clj-time/clj-time {:git/url "https://github.com/clj-time/clj-time; :rev "cce58248"}} } ~/work/fred > clj Error building classpath. Manifest type :lein not loaded

Re: [ANN] Git Deps for Clojure!

2018-01-07 Thread Alex Miller
On Sunday, January 7, 2018 at 2:37:33 PM UTC-6, Daniel Compton wrote: > > > git deps go to .gitlibs. > > Would you consider not putting them in the root of the user's home > directory? All the major OS's (and probably the minor ones too) have > dedicated folders to put caches. I've opened >

Re: [ANN] Git Deps for Clojure!

2018-01-07 Thread Nathan Fisher
Im probably not typical for this but I really value the ability to override the location of where they’re placed. I actually commit my deps to SCM for production code. The internet is fast enough these days that i don’t care about a common code cache. I’m more interested in a reproducible build.

Re: [ANN] Git Deps for Clojure!

2018-01-07 Thread Nathan Fisher
Great work Alex! Not sure I would want to see duplicates either. If my code breaks because of an old dependency I’d rather that than make the false assumption that I’m running securely with the latest version of a lib. On Fri, 5 Jan 2018 at 16:20, Gary Trakhman wrote:

Re: [ANN] Git Deps for Clojure!

2018-01-07 Thread Daniel Compton
> git deps go to .gitlibs. Would you consider not putting them in the root of the user's home directory? All the major OS's (and probably the minor ones too) have dedicated folders to put caches. I've opened https://dev.clojure.org/jira/browse/TDEPS-30 with more details on this. -- Daniel On

Re: [ANN] Git Deps for Clojure!

2018-01-06 Thread Alex Miller
> On Jan 6, 2018, at 5:43 AM, Khalid Jebbari wrote: > > Great news, great work ! Soon running Clojure will be dead easy. > > 2 questions : > - where do dependencies get downloaded ? `~/.m2` ? It depends on the procurer > (mvn/git/etc.) It depends. Maven deps go to

Re: [ANN] Git Deps for Clojure!

2018-01-06 Thread Khalid Jebbari
Great news, great work ! Soon running Clojure will be dead easy. 2 questions : - where do dependencies get downloaded ? `~/.m2` ? It depends on the procurer (mvn/git/etc.) - does it work for Cljs ? What does it mean for Cljs ? -- You received this message because you are subscribed to the

Re: [ANN] Git Deps for Clojure!

2018-01-05 Thread Alex Miller
On Friday, January 5, 2018 at 2:08:50 PM UTC-6, Gary Trakhman wrote: > > Specifically, I'm asking about how to resolve duplicate transitive > dependencies to actual code, possibly referring to the same lib repo at > different git hashes, or different git repos. > Ah, good question. The answer

Re: [ANN] Git Deps for Clojure!

2018-01-05 Thread Gary Trakhman
Specifically, I'm asking about how to resolve duplicate transitive dependencies to actual code, possibly referring to the same lib repo at different git hashes, or different git repos. I think you answered, 'how do you get a single graph of deps nodes given different kinds of deps'? For example:

Re: [ANN] Git Deps for Clojure!

2018-01-05 Thread Alex Miller
On Fri, Jan 5, 2018 at 1:20 PM, Gary Trakhman wrote: > Congrats on the release! It's exciting to see this vision move forward. > Wondering if the logical next step is the npm style of trees of duplicate > transitive git deps. In general, how is this going to work for

Re: [ANN] Git Deps for Clojure!

2018-01-05 Thread Gary Trakhman
Congrats on the release! It's exciting to see this vision move forward. Wondering if the logical next step is the npm style of trees of duplicate transitive git deps. In general, how is this going to work for transitive deps? On Fri, Jan 5, 2018 at 1:49 PM Alex Miller

[ANN] Git Deps for Clojure!

2018-01-05 Thread Alex Miller
Pleased to announce some new functionality for clj and tools.deps! https://clojure.org/news/2018/01/05/git-deps Additionally, there have been new releases of: - Brew clojure formula (to get it: brew upgrade clojure) - Linux clojure installer (see https://clojure.org/guides/getting_started for