Skip to content

fix: fall back to default command when Procfile key is missing - #8

Open
yahyanaujid wants to merge 1 commit into
kubero-dev:mainfrom
yahyanaujid:fix/procfile-missing-key-fallback
Open

yahyanaujid wants to merge 1 commit into
kubero-dev:mainfrom
yahyanaujid:fix/procfile-missing-key-fallback

Conversation

@yahyanaujid

Copy link
Copy Markdown

Fixes the silent-empty-script bug from kubero-dev/kubero#795.

When a Procfile exists but is missing a build:, web:, or worker: key, the corresponding init-.sh script was written empty instead of falling back to KUBERO_BUILDPACK_DEFAULT__CMD — the fallback only ran when there was no Procfile at all. This moves the fallback check outside the Procfile branch so it applies whenever the extracted command is empty, for all three script types (the issue only reported build:, but web:/worker: have the identical bug).

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.

1 participant