Update build submodule to 87ea77a17f7174767629d514096c0ebe23d96c9e
Signed-off-by: Alper Rifat Ulucinar <ulucinar@users.noreply.github.com>
This commit is contained in:
parent
750cac54f2
commit
392c8cd4c9
2
build
2
build
|
|
@ -1 +1 @@
|
|||
Subproject commit bd63a4167ae20a71788537217b022fced8f2f854
|
||||
Subproject commit 87ea77a17f7174767629d514096c0ebe23d96c9e
|
||||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue