diff --git a/buildpack_test.go b/buildpack_test.go index b357d6e..9c87c7f 100644 --- a/buildpack_test.go +++ b/buildpack_test.go @@ -21,9 +21,10 @@ import ( "testing" "github.com/BurntSushi/toml" - "github.com/buildpacks/libcnb" "github.com/sclevine/spec" + "github.com/buildpacks/libcnb" + . "github.com/onsi/gomega" ) diff --git a/detect.go b/detect.go index e2800b8..39affd9 100644 --- a/detect.go +++ b/detect.go @@ -126,9 +126,8 @@ func Detect(detector Detector, options ...Option) { logger.Debug(PlatformFormatter(ctx.Platform)) } - 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 { + config.exitHandler.Error(fmt.Errorf("unable to read platform bindings %s\n%w", ctx.Platform.Path, err)) return } logger.Debugf("Platform Bindings: %+v", ctx.Platform.Bindings) diff --git a/tools/tools.go b/tools/tools.go index a83677f..407e2db 100644 --- a/tools/tools.go +++ b/tools/tools.go @@ -1,3 +1,4 @@ +//go:build tools // +build tools package tools