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.
The tag documents which release the SHA corresponds to.
io.github.paintparty/lasertag
{:git/tag {{TAG}}
:git/sha {{SHA}}}
io.github.paintparty/lasertag {:git/sha {{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}}}
io.github.paintparty/lasertag
{:git/url "https://github.com/paintparty/lasertag"
:git/tag {{TAG}}
:git/sha {{SHA}}}
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
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |