Skip to content

Commit 44ec935

Browse files
committed
Add find_cargo_workspace utility method
In preparation for adding support for testing meta-buildpacks the `find_cargo_workspace` method is being added to `libcnb-package` so that it can be shared between `libcnb-package` and `libcnb-test`. Both the packaging and testing processes will use this to locate buildpacks within a workspace in order to resolve project-level dependencies declared with `libcnb:{buildpack_id}`.
1 parent 68e49cd commit 44ec935

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

libcnb-cargo/src/package/error.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,7 @@ impl From<BuildBinariesError> for Error {
147147
BuildError::UnexpectedCargoExitStatus(exit_status),
148148
) => Error::BinaryBuildExitStatus {
149149
target,
150-
code: exit_status
151-
.code()
152-
.map_or_else(|| String::from("<unknown>"), |code| code.to_string()),
150+
code: exit_status_or_unknown(exit_status),
153151
},
154152

155153
BuildBinariesError::MissingBuildpackTarget(target) => {

0 commit comments

Comments
 (0)