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

Use appropriate bindings path for detect #106

Merged
merged 1 commit into from
Jan 6, 2022
Merged

Use appropriate bindings path for detect #106

merged 1 commit into from
Jan 6, 2022

Conversation

sambhav
Copy link
Member

@sambhav sambhav commented Jan 5, 2022

Signed-off-by: Sambhav Kothari [email protected]

Fixes #105

file = filepath.Join(ctx.Platform.Path, "bindings")
if ctx.Platform.Bindings, err = NewBindingsFromPath(file); err != nil {
config.exitHandler.Error(fmt.Errorf("unable to read platform bindings %s\n%w", file, err))
if ctx.Platform.Bindings, err = NewBindingsForBuild(ctx.Platform.Path); err != nil {
Copy link
Member Author

Choose a reason for hiding this comment

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

Looking back at this - I don't like that we call this NewBindingsForBuild - we should update it to something better in v2. cc: @dmikusa-pivotal

Copy link
Contributor

Choose a reason for hiding this comment

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

+1

@sambhav sambhav added semver:patch A change requiring a patch version bump type:bug A general bug labels Jan 5, 2022
@sambhav sambhav requested a review from dmikusa January 5, 2022 22:23
@sambhav sambhav merged commit c9ad73f into main Jan 6, 2022
@sambhav sambhav deleted the binding branch January 6, 2022 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch A change requiring a patch version bump type:bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting SERVICE_BINDING_ROOT does not apply at detect
2 participants