You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the reason for this is that the default version of go is too old and doesn't support modules by default, and so we need to use the updated version of go that we use for i.e. edgex-go. AFAICT, for the edgex-go jobs this is accomplished in the job definition yaml with this snippet:
Yes, I think you'll need the install_custom_golang.sh script and the go-root definition. But it looks like edgex-ui-go.yaml has a global pre_build_script already defined, so you'll need to make sure that overwriting that won't break anything.
After adding those to the master stream for edgex-ui-go, unfortunately the build still fails, however it seems the issue could be with some missing dependencies not checked into the go.mod file. I am investigating with edgexfoundry/edgex-ui-go#87
anonymouse64
added a commit
to anonymouse64/ci-management
that referenced
this issue
Apr 30, 2019
The
edgex-ui-go
master branch recently switched to using go modules, and now has jenkins jobs failing. See for example: https://jenkins.edgexfoundry.org/job/edgex-ui-go-master-verify-go/46/console from edgexfoundry/edgex-ui-go#85I think the reason for this is that the default version of go is too old and doesn't support modules by default, and so we need to use the updated version of go that we use for i.e. edgex-go. AFAICT, for the edgex-go jobs this is accomplished in the job definition yaml with this snippet:
ci-management/jjb/edgex-go/edgex-go.yaml
Lines 8 to 13 in 457179d
Does that mean all we need to do to get this to work on edgex-ui-go is to add that
go-root
spec to the master stream?The text was updated successfully, but these errors were encountered: