Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update buildpack.toml & improve error message #88

Merged
merged 2 commits into from
Aug 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions buildpack.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
api = "0.4"
api = "0.5"

[buildpack]
homepage = "https://github.com/paketo-community/cargo-install"
id = "paketo-community/cargo-install"
name = "Rust Cargo Build Pack"
homepage = "https://github.com/paketo-community/cargo-install"
description = "A Cloud Native Buildpack that builds Cargo-based Rust applications from source"
keywords = ["cargo", "rust", "build-system"]

[[buildpack.licenses]]
type = "Apache-2.0"
uri = "https://github.com/paketo-community/cargo-install/blob/main/LICENSE"

[metadata]
include-files = ["bin/run", "bin/build", "bin/detect", "buildpack.toml"]
Expand All @@ -13,7 +19,7 @@ api = "0.4"
id = "io.buildpacks.stacks.bionic"

[[stacks]]
id = "org.cloudfoundry.stacks.cflinuxfs3"
id = "io.paketo.stacks.tiny"

[[stacks]]
id = "io.paketo.stacks.tiny"
id = "*"
2 changes: 1 addition & 1 deletion cargo/cli_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (c CLIRunner) WorkspaceMembers(srcDir string, workLayer packit.Layer, destL
Args: []string{"metadata", "--format-version=1", "--no-deps"},
})
if err != nil {
return nil, fmt.Errorf("build failed: %w", err)
return nil, fmt.Errorf("build failed: %s\n%w", &stdout, err)
}

var m metadata
Expand Down