Update build submodule to 87ea77a17f7174767629d514096c0ebe23d96c9e

Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
This commit is contained in:
Alper Rifat Ulucinar 2022-08-26 15:11:23 +03:00
parent 750cac54f2
commit 392c8cd4c9
No known key found for this signature in database
GPG Key ID: 7FA6E859125EFEEF
2 changed files with 8 additions and 1 deletions

2
build

@ -1 +1 @@
Subproject commit bd63a4167ae20a71788537217b022fced8f2f854
Subproject commit 87ea77a17f7174767629d514096c0ebe23d96c9e

View File

@ -181,6 +181,13 @@ func getTypeCodeFromPath(path string, nameSuffix ...string) *jen.Statement {
func getFuncCodeFromPath(path string) (*jen.Statement, error) {
parts := regexFunctionCall.FindStringSubmatch(path)
// we have a total of four groups in the regular expression so if
// we do not have four parts, then we cannot handle the reference expression
// Examples paths are:
// github.com/upbound/upjet/pkg/resource.ExtractParamPath("a.b.c",true)
// ExtractParamPath("a.b.c",true)
// ExtractParamPath("a", false)
// ExtractParamPath()
if len(parts) != 4 {
return nil, errors.Errorf("path %q is not a valid function code", path)
}