diff --git a/rpms/openshift-odo.spec b/rpms/openshift-odo.spec index 5ba3a0c31..d31af7527 100644 --- a/rpms/openshift-odo.spec +++ b/rpms/openshift-odo.spec @@ -41,6 +41,7 @@ mkdir -p %{gopath}/src/github.com/openshift ln -s "$(pwd)" %{gopath}/src/github.com/openshift/odo export GOPATH=%{gopath} cd %{gopath}/src/github.com/openshift/odo +go mod edit -go=%{golang_version} %ifarch x86_64 # go test -race is not supported on all arches GOFLAGS='-mod=vendor' make test