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

Fix the command parameter to work with Buildpacks API 0.9 #163

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

dlion
Copy link
Member

@dlion dlion commented Aug 3, 2023

In the example we are using Buildpacks API 0.9
https://github.com/buildpacks/samples/blob/main/apps/bash-script/bash-script-buildpack/buildpack.toml#L2 which requires to have a command = [something] as specified in the spec: https://github.com/buildpacks/spec/blob/buildpack/v0.9/buildpack.md#launchtoml-toml
But in the builder we have a string instead of an array, causing an error when processed: https://github.com/buildpacks/samples/blob/main/apps/bash-script/bash-script-buildpack/bin/build#L13

This PR just fix that putting the ./app.bat or ./app.sh command into an array

@dlion dlion requested a review from a team as a code owner August 3, 2023 15:39
Signed-off-by: Domenico Luciani <dluciani@vmware.com>
Copy link
Member

@AidanDelaney AidanDelaney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! Thanks.

@AidanDelaney AidanDelaney merged commit 309a951 into buildpacks:main Aug 8, 2023
5 checks passed
@dlion dlion deleted the fix-sample-app-command branch August 29, 2023 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants