(absolute-coords coords base-path)
Given a base path and dep coordinates, ensures any paths in the coordinates are absolute relative to the base path.
Given a base path and dep coordinates, ensures any paths in the coordinates are absolute relative to the base path.
(absolute-deps deps base-path)
Given a base path and deps, ensures that all absolute paths in the deps (including relative deps embedded in aliases) are absolute relative to the base path.
Given a base path and deps, ensures that all absolute paths in the deps (including relative deps embedded in aliases) are absolute relative to the base path.
(absolute-deps-map deps-map base-path)
Given a base path and a deps map (a mapping from lib symbol to coordinates), ensures that any relative paths embedded in coordinates are absolute relative to the base path.
Given a base path and a deps map (a mapping from lib symbol to coordinates), ensures that any relative paths embedded in coordinates are absolute relative to the base path.
(absolute-local-root-coords {:keys [local/root]} base-path)
Given a base path and :local/root coordinates, ensures the specified path is absolute relative to the base path.
Given a base path and :local/root coordinates, ensures the specified path is absolute relative to the base path.
(canonicalise-dep-locs config project-root dep-refs)
Returns a seq of absolute java.io.File given a seq of dep-refs. Any relative dep-refs will be made absolute relative to project-root.
Returns a seq of absolute java.io.File given a seq of dep-refs. Any relative dep-refs will be made absolute relative to project-root.
Returns a map describing the environment known to clj/clojure: {:config-files [ ... ]}
Returns a map describing the environment known to clj/clojure: {:config-files [ ... ]}
(make-dep-loc-lookup config)
Returns a function mapping from a loc(ation) keyword (either :install, :user or :project) to a file location. If the value is a string it is returned as is.
Returns a function mapping from a loc(ation) keyword (either :install, :user or :project) to a file location. If the value is a string it is returned as is.
(make-deps {:keys [root]
{:keys [config-files] :as config} :lein-tools-deps/config
:as project})
Reads and merges all of the deps-ref, returning a single deps map
Reads and merges all of the deps-ref, returning a single deps map
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close