Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade `libcnb.rs` to `0.15.0` The following general improvements were added for all commands: - Added `Display` implementations for errors shared by several commands (i.e.; `FindReleasableBuildpacksError`, `SetActionOutputError`, `GetWorkingDirectoryError`, `ReadBuildpackDescriptor`) ### `generate_buildpack_matrix` This command has been updated to remove hardcoded target output directories and instead accept a package directory (`--package-dir`). The other (optional) arguments are to line up with the arguments used by `cargo libcnb package` with sensible defaults. The `_buildpacks_release.yml` workflow has also been updated to pass through the `--package-dir` argument which is set as the default value `./packaged`. ### `generate_changelog` Slight modifications to support `libcnb` changes and refactorings detailed above. ### `prepare_release` Slight modifications to support `libcnb` changes and refactorings detailed above. ### `update_builder` Slight modifications to support `libcnb` changes and refactorings detailed above. * pass --package-dir to libcnb package command * rename directory args package-dir and workspace-dir * switching get workspace dir helper to resolve path * Replaced error `Display` impls with `thiserror` * Refactor resolve functions * Refactor resolve functions * Use `map_or` * Apply suggestions from code review * Remove --release arg Since: - it was unused - the implementation had a bug - this tooling focuses on publishing release builds, so we don't really need to support non-release builds (and can always add them later if really needed) * Remove --working-dir arg Since it's unused. The variable names were normalised back to `current_dir`, to make its value clearer, and also since it reduces the size of the overall PR (which contained a number of renames to `working_dir`). * Fix lint error --------- Co-authored-by: Ed Morley <[email protected]>
- Loading branch information