Liking cljdoc? Tell your friends :D

Consuming Lasertag as a git dependency

This doc explains, by example, all the possible variations of the map you would use to specify Lasertag as a git dependency.

Because the library is named io.github.paintparty/lasertag, the git URL is inferred and :git/url can be omitted.

:git/sha is always required.

:git/tag is an optional readable label.


Tag + SHA (URL inferred, recommended)

The tag documents which release the SHA corresponds to.

io.github.paintparty/lasertag 
{:git/tag {{TAG}} 
 :git/sha {{SHA}}}

SHA only (URL inferred)

io.github.paintparty/lasertag {:git/sha {{SHA}}}

Explicit URL + SHA

Use this if you want the URL spelled out, or for SSH/private access.

io.github.paintparty/lasertag
{:git/url "https://github.com/paintparty/lasertag"
 :git/sha {{SHA}}}

Explicit URL + tag + SHA

io.github.paintparty/lasertag
{:git/url "https://github.com/paintparty/lasertag"
 :git/tag {{TAG}}
 :git/sha {{SHA}}}

Resolving the SHA from a tag

If you'd rather not copy the SHA by hand, write the dependency with just the tag:

io.github.paintparty/lasertag {:git/tag {{TAG}}}

then run:

clojure -X:deps git-resolve-tags

This scans your deps.edn for git deps that have a :git/tag but no :git/sha, resolves each tag to its commit SHA, and writes the SHA back into the file in place. It needs a :git/tag to resolve from. It will not help the SHA-only form.

Can you improve this documentation?Edit on GitHub

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close