diff --git a/internal/buildpack/locator_type.go b/internal/buildpack/locator_type.go index 94ee49a15..3c29245a0 100644 --- a/internal/buildpack/locator_type.go +++ b/internal/buildpack/locator_type.go @@ -86,7 +86,7 @@ func builderMatchFound(locator string, candidates []dist.BuildpackInfo) bool { func hasHostPortPrefix(locator string) bool { if strings.Contains(locator, "/") { prefix := strings.Split(locator, "/")[0] - if strings.Contains(prefix, ":") { + if strings.Contains(prefix, ":") || strings.Contains(prefix, ".") { return true } } diff --git a/internal/buildpack/locator_type_test.go b/internal/buildpack/locator_type_test.go index 4e8521e56..e39f27a61 100644 --- a/internal/buildpack/locator_type_test.go +++ b/internal/buildpack/locator_type_test.go @@ -157,6 +157,10 @@ func testGetLocatorType(t *testing.T, when spec.G, it spec.S) { locator: "localhost:1234/example/package-cnb", expectedType: buildpack.PackageLocator, }, + { + locator: "dev.local/http-go-fn:latest", + expectedType: buildpack.PackageLocator, + }, } { tc := tc