pub fn assemble_buildpack_directory(
    destination_path: impl AsRef<Path>,
    buildpack_descriptor_path: impl AsRef<Path>,
    buildpack_binaries: &BuildpackBinaries
) -> Result<()>
Expand description

Creates a buildpack directory and copies all buildpack assets to it.

Assembly of the directory follows the constraints set by the libcnb framework. For example, the buildpack binary is only copied once and symlinks are used to refer to it when the CNB spec requires different file(name)s.

This function will not validate if the buildpack descriptor at the given path is valid and will use it as-is.

Errors

Will return Err if the buildpack directory could not be assembled.