Enabling override of required golang in rpm (#4888)

- This makes it possible to override golang version based on
   availability in build system of rpm

Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
This commit is contained in:
Mohammed Ahmed
2021-07-19 17:10:54 +05:30
committed by GitHub
parent 6f198cb7fa
commit 37f51ebd57

View File

@@ -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