Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable tools.deps.alpha access via git #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ghadishayban
Copy link

Having a deps.edn provided allows me to pull this artifact from git directly using the new official clj launcher. This uses the git machinery that tools.deps.alpha exposes. The file helps t.d.a resolve transitive dependencies (this project conveniently has none, other than Clojure itself.)

To launch a REPL, run clj.

To launch with access to tests, against an old version of Clojure:

clj -R:v1.2 -C:test

Once this file is present, other users or libraries will be able to directly pull down this code without needing to release a Maven artifact. Their deps.edn could look like:

{:deps {org.clojure/clojure {:mvn/version "1.9.0"}
        ninjudd/clojure-complete {:git/url "git@github.com:ninjudd/clojure-complete.git"
                                  :sha "whateverlatestis"}}}

Having a deps.edn provided allows me to pull this artifact from git directly using the new official clj launcher.  This uses the git machinery that tools.deps.alpha exposes. The file helps t.d.a resolve transitive dependencies (this project conveniently has none, other than Clojure itself.)

To launch a REPL, run `clj`.

To launch with access to tests, against an old version of Clojure:

```
clj -R:v1.2 -C:test
```

Once this file is present, other users or libraries will be able to directly pull down this code without needing to release a Maven artifact. Their deps.edn could look like:

```clj
{:deps {org.clojure/clojure {:mvn/version "1.9.0"}
             ninjudd/clojure-complete {:git/url "git@github.com:ninjudd/clojure-complete.git" :sha "whateverlatestis"}}}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant