Skip to content

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>
@dlion dlion force-pushed the fix-sample-app-command branch from 02c99cb to 0f368ee Compare August 8, 2023 08:21
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
@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