https://github.com/rads/deps-info
🔮 Functions to get info about tools.deps coordinates
https://github.com/rads/deps-info
bbin
Last synced: 3 months ago
JSON representation
🔮 Functions to get info about tools.deps coordinates
- Host: GitHub
- URL: https://github.com/rads/deps-info
- Owner: rads
- License: mit
- Archived: true
- Created: 2022-08-28T16:28:41.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-01T14:47:46.000Z (over 2 years ago)
- Last Synced: 2025-02-18T22:14:54.115Z (over 1 year ago)
- Topics: bbin
- Language: Clojure
- Homepage:
- Size: 29.3 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# deps-info
Functions to get info about `tools.deps` coordinates.
## `rads.deps-info.infer`
Infer `tools.deps` coordinates from a lib name, a partial set of coordinates, or both.
```
$ bbin install io.github.rads/deps-info
{:lib io.github.rads/deps-info,
:coords
{:git/url "https://github.com/rads/deps-info",
:git/tag "v0.0.1",
:git/sha "cf7a85377fd05070135c0c5dcf606793de5d0560"}}
Cloning: https://github.com/rads/deps-info
Checking out: https://github.com/rads/deps-info at cf7a85377fd05070135c0c5dcf606793de5d0560
$ deps-info-infer --lib io.github.rads/deps-info
#:io.github.rads{deps-info #:git{:url "https://github.com/rads/deps-info", :tag "v0.0.1", :sha "cf7a85377fd05070135c0c5dcf606793de5d0560"}}
$ deps-info-infer --lib io.github.rads/deps-info --latest-sha
#:io.github.rads{deps-info #:git{:url "https://github.com/rads/deps-info", :sha "cf7a85377fd05070135c0c5dcf606793de5d0560"}}
```
This namespace can be be added to a `deps.edn` project as a standalone dependency using `:deps/root`:
```
{:deps {io.github.rads/deps-info {:git/tag "..." :git/sha "..."
:deps/root "infer"}}}
```
## `rads.deps-info.summary`
Get procurer and artifact info for coordinates.
```clojure
(require '[rads.deps-info.summary :as summary])
(summary/summary {:script/lib "io.github.rads/deps-info"})
```