mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user