-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add support for buildpack API v0.5 #121
Conversation
a02861d
to
7224939
Compare
build.go
Outdated
oldAPI := false | ||
apiV05, _ := semver.NewVersion("0.5") | ||
if version, err := semver.NewVersion(buildpackInfo.APIVersion); err != nil { | ||
config.exitHandler.Error(err) | ||
return | ||
} else if version.LessThan(apiV05) { | ||
oldAPI = true | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than recording this in a variable, oldAPI
, that will likely be superseded as soon as a newer API version comes out, can we just record the API version specified in the buildpack and then do the comparisons in the locations that oldAPI
appears below? This would be helpful to future developers as they would more easily understand the code in that location.
These changes look pretty solid to me! +1 to Ryan's comment above. |
Thanks, should be fixed now :) |
Summary
Adds support for BP API v0.5
Fixes #85
Use Cases
Checklist