Description of problem: Below error appears when build with openshift/golang-ex: github.com/openshift/golang-ex/models github.com/openshift/golang-ex/controllers # github.com/openshift/golang-ex/controllers ../github.com/openshift/golang-ex/controllers/app.go:79: this.TplNames undefined (type *AppController has no field or method TplNames) ../github.com/openshift/golang-ex/controllers/longpolling.go:38: this.TplNames undefined (type *LongPollingController has no field or method TplNames) ../github.com/openshift/golang-ex/controllers/longpolling.go:45: this.TplNames undefined (type *LongPollingController has no field or method TplNames) ../github.com/openshift/golang-ex/controllers/longpolling.go:66: this.ServeJson undefined (type *LongPollingController has no field or method ServeJson) ../github.com/openshift/golang-ex/controllers/longpolling.go:76: this.ServeJson undefined (type *LongPollingController has no field or method ServeJson) ../github.com/openshift/golang-ex/controllers/websocket.go:41: this.TplNames undefined (type *WebSocketController has no field or method TplNames) F0120 04:07:53.554946 1 builder.go:185] Error: build error: The command '/bin/sh -c go-wrapper install' returned a non-zero code: 2 Version-Release number of selected component (if applicable): https://github.com/openshift/golang-ex openshift v3.1.1.5 kubernetes v1.1.0-origin-1107-g4c8e6f4 etcd 2.1.2 How reproducible: Always Steps to Reproduce: 1. Create a project 2. Build with the forked repo $oc new-app -f https://raw.githubusercontent.com/openshift/golang-ex/master/openshift/templates/beego.json -p SOURCE_REPOSITORY_URL=https://github.com/openshift/golang-ex 3. Check the build status status $oc get builds Actual results: Build failed with errors in build log. Expected results: It should succeed.
Rodolfo or Victor can you take a look at this since you're working on the golang example anyway to add tests? thanks
Taking a look
I can reproduce the bug. It was caused by this PR in beego: https://github.com/astaxie/beego/pull/1540 By looking at the latest commits, looks like they are breaking the API all the time :( I don't really like using beego in our golang-ex, but, anyway, an old PR I have open will fix the problem by vendoring all dependencies: https://github.com/openshift/golang-ex/pull/9
My PR in golang-ex got merged, the problem should be fixed. @Wenjing Zheng please check.
Verified with new openshift/golang-ex repo, works correctly. Thanks!
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2016:1064