Function libcnb_package::buildpack_dependency_graph::build_libcnb_buildpacks_dependency_graph
source · pub fn build_libcnb_buildpacks_dependency_graph(
cargo_workspace_root: &Path
) -> Result<Graph<BuildpackDependencyGraphNode, ()>, BuildBuildpackDependencyGraphError>
Expand description
Creates a dependency graph of libcnb.rs and composite buildpacks in a directory.
Buildpacks that aren’t implemented with libcnb.rs or aren’t composite buildpacks will not be part of the dependency graph. Examples buildpacks that are not included are docker image URLs or directories containing CNBs written in bash.
Likewise, the only dependency edges in the resulting graph are dependencies declared via
libcnb:
URIs.
§Errors
Returns Err
if a buildpack declares an invalid dependency, has an invalid buildpack.toml or
package.toml or an I/O error occurred while traversing the given directory.