diff --git a/.travis.yml b/.travis.yml index a468889cd..fbd14356b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ jobs: - &base-test stage: test go_import_path: github.com/openshift/odo - go: "1.12.x" + go: "1.13.x" install: - make goget-tools script: @@ -31,7 +31,7 @@ jobs: init: - git config --system core.longpaths true go_import_path: github.com/openshift/odo - go: "1.12.x" + go: "1.13.x" install: - systeminfo.exe | grep '^OS' - choco install make @@ -50,7 +50,7 @@ jobs: os: - osx go_import_path: github.com/openshift/odo - go: "1.12.x" + go: "1.13.x" install: - make goget-tools script: diff --git a/Dockerfile.rhel b/Dockerfile.rhel index 884c3e2cb..afb00f6cd 100644 --- a/Dockerfile.rhel +++ b/Dockerfile.rhel @@ -1,7 +1,7 @@ # This Dockerfile builds an image containing the Linux, Mac and Windows version of odo # layered on top of the ubi7/ubi image. -FROM registry.svc.ci.openshift.org/openshift/release:golang-1.12 AS builder +FROM registry.svc.ci.openshift.org/openshift/release:golang-1.13 AS builder COPY . /go/src/github.com/openshift/odo WORKDIR /go/src/github.com/openshift/odo diff --git a/docs/dev/development.adoc b/docs/dev/development.adoc index 3f7aa4987..b73003301 100644 --- a/docs/dev/development.adoc +++ b/docs/dev/development.adoc @@ -7,7 +7,7 @@ toc::[] == Setting up -Requires *Go 1.12* +Requires *Go 1.13* Testing and release builds happen with the above version. Developers are advised to stick to this version if they can but it is not compulsory. diff --git a/openshift-ci/build-root/Dockerfile b/openshift-ci/build-root/Dockerfile index 2579f3be0..bdb291dae 100644 --- a/openshift-ci/build-root/Dockerfile +++ b/openshift-ci/build-root/Dockerfile @@ -1,6 +1,6 @@ # Dockerfile to bootstrap build and test in openshift-ci -FROM registry.svc.ci.openshift.org/openshift/release:golang-1.12 +FROM registry.svc.ci.openshift.org/openshift/release:golang-1.13 RUN yum -y install make wget gcc git httpd-tools diff --git a/rpms/openshift-odo.spec b/rpms/openshift-odo.spec index 24e3f9615..abf6b7774 100644 --- a/rpms/openshift-odo.spec +++ b/rpms/openshift-odo.spec @@ -65,6 +65,7 @@ cp -avrf dist/release/SHA256_SUM %{buildroot}%{_datadir}/%{name}-redistributable %license LICENSE %{_bindir}/odo +%ifarch x86_64 %package redistributable Summary: %{product_name} client CLI binaries for Linux, macOS and Windows BuildRequires: gcc @@ -91,4 +92,4 @@ Obsoletes: %{package_name}-redistributable %{_datadir}/%{name}-redistributable/odo-windows-amd64.exe %{_datadir}/%{name}-redistributable/odo-windows-amd64.exe.tar.gz %{_datadir}/%{name}-redistributable/SHA256_SUM - +%endif diff --git a/scripts/rpm-local-build.sh b/scripts/rpm-local-build.sh index c24d5b0bc..4dfb31c6e 100755 --- a/scripts/rpm-local-build.sh +++ b/scripts/rpm-local-build.sh @@ -6,6 +6,10 @@ if [[ ! -d dist/rpmbuild ]]; then exit 1 fi +echo "Cleaning up old rpmcontent" +rm -f ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} +mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} + echo "Copying content to local rpmbuild" cp -avrf dist/rpmbuild/SOURCES/* $HOME/rpmbuild/SOURCES/ cp -avrf dist/rpmbuild/SPECS/* $HOME/rpmbuild/SPECS/ diff --git a/scripts/rpm-prepare.sh b/scripts/rpm-prepare.sh index 2b8819d57..49e1c3fc7 100755 --- a/scripts/rpm-prepare.sh +++ b/scripts/rpm-prepare.sh @@ -13,8 +13,8 @@ export ODO_RPM_VERSION=${ODO_VERSION//-} # Golang version variables, if you are bumping this, please contact redhat maintainers to ensure that internal # build systems can handle these versions -export GOLANG_VERSION=${GOLANG_VERSION:-1.12} -export GOLANG_VERSION_NODOT=${GOLANG_VERSION_NODOT:-112} +export GOLANG_VERSION=${GOLANG_VERSION:-1.13} +export GOLANG_VERSION_NODOT=${GOLANG_VERSION_NODOT:-113} # Print env for verifcation echo "Printing envs for verification"