(evict-subtrees deps subtree-roots)
Evict subtrees from a dependency tree.
subtree-roots
are defined as a set of dependency names (for example #{'org.clojure/clojure 'org.clojure/clojurescript}
without their versions. Tested on a resolved tree. Assumed that it would evict all subtrees from an unresolved depedency
tree.
Evict subtrees from a dependency tree. `subtree-roots` are defined as a set of dependency names (for example `#{'org.clojure/clojure 'org.clojure/clojurescript}` without their versions. Tested on a resolved tree. Assumed that it would evict all subtrees from an unresolved depedency tree.
(walk&expand-deps deps resolve-dep-fn overrides)
(walk&expand-deps deps resolve-dep-fn overrides path)
Walks a dependency tree and expands it with all dependencies as walking.
This essentially means that an unresolved dependency tree is created where all nodes hold their originally defined dependencies as children recursively.
Understands overrides in terms of versions so a node can be overridden at any point of the tree while it is being built. This means that if the old version of the same dependency has different dependencies in its turn than the new version being enforced by overriding the dependencies of the new version will be present in the subtree.
Overrides is a map where keys are paths as vectors to a dependency in an unresolved tree and values are dependencies as a vector. for example
{[mvxcvi/puget fipp] [fipp 0.6.14]}
Walks a dependency tree and expands it with all dependencies as walking. This essentially means that an unresolved dependency tree is created where all nodes hold their originally defined dependencies as children recursively. Understands overrides in terms of versions so a node can be overridden at any point of the tree while it is being built. This means that if the old version of the same dependency has different dependencies in its turn than the new version being enforced by overriding the dependencies of the new version will be present in the subtree. Overrides is a map where keys are paths as vectors to a dependency in an unresolved tree and values are dependencies as a vector. for example ``` {[mvxcvi/puget fipp] [fipp 0.6.14]} ```
(walk-dep-tree deps pre-fn post-fn paths ctx)
Walks a dependency tree in depth first order.
Applies pre-fn
on node before going down a level. pre-fn
calculates and returns its own context and paths,
these are passed down to the next level. After the subtree is processed post-fn
gets applied using the context,
paths returned by pre-fn
for the same node.
Walks a dependency tree in depth first order. Applies `pre-fn` on node before going down a level. `pre-fn` calculates and returns its own context and paths, these are passed down to the next level. After the subtree is processed `post-fn` gets applied using the context, paths returned by `pre-fn` for the same node.
(walk-ordered-deps deps pre-fn post-fn paths ctx)
Walks a flat list of dependencies.
Applies pre-fn
on all the dependencies and collects the pre-fn
returned contextual values and paths.
Runs post-fn
on all the dependencies in a reverse order using the pre-fn
results and paths.
Walks a flat list of dependencies. Applies `pre-fn` on all the dependencies and collects the `pre-fn` returned contextual values and paths. Runs `post-fn` on all the dependencies in a reverse order using the `pre-fn` results and paths.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close