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

Fail detection with a CNB-friendly exit code #1111

Closed
wants to merge 1 commit into from

Conversation

kamaln7
Copy link

@kamaln7 kamaln7 commented Jan 18, 2021

The CNB spec defines the following exit codes for detection scripts:

  • 0 - passed detection
  • 100 - failed detection
  • anything else - error

(ref: https://github.com/buildpacks/spec/blob/main/buildpack.md#detection)

My understanding is that this change is in-line with the Heroku Buildpack API, but let me know if that's not the case.

@kamaln7 kamaln7 requested a review from a team as a code owner January 18, 2021 19:26
@schneems
Copy link
Contributor

Thanks. I've grabbed your commit so that I can run the tests against it. PR to the test branch is linked. It's conditionally approved pending tests passing.

@schneems schneems closed this Jan 19, 2021
@schneems
Copy link
Contributor

Tests passed and your change has been merged (though not yet deployed). Thanks for the contribution!

@kamaln7
Copy link
Author

kamaln7 commented Jan 20, 2021

Great! Thanks, @schneems 🙂

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.

2 participants