From 51e93feb9af579659c14f64d6ca621a4471fca3a Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Tue, 17 Nov 2020 21:20:33 +0100 Subject: [PATCH] Update go to 1.15.5 Signed-off-by: Jakub Sztandera --- .circleci/config.yml | 6 +++--- Makefile | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f0db4c3ccb3..4432079459a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,7 +5,7 @@ orbs: executors: golang: docker: - - image: circleci/golang:1.14.6 + - image: circleci/golang:1.15.5 resource_class: 2xlarge ubuntu: docker: @@ -294,8 +294,8 @@ jobs: - run: name: Install go command: | - curl -O https://dl.google.com/go/go1.14.2.darwin-amd64.pkg && \ - sudo installer -pkg go1.14.2.darwin-amd64.pkg -target / + curl -O https://dl.google.com/go/go1.15.5.darwin-amd64.pkg && \ + sudo installer -pkg go1.15.5.darwin-amd64.pkg -target / - run: name: Install pkg-config command: HOMEBREW_NO_AUTO_UPDATE=1 brew install pkg-config diff --git a/Makefile b/Makefile index a018e86f89b..9c77aa8eee5 100644 --- a/Makefile +++ b/Makefile @@ -5,10 +5,10 @@ all: build unexport GOFLAGS -GOVERSION:=$(shell go version | cut -d' ' -f 3 | cut -d. -f 2) -ifeq ($(shell expr $(GOVERSION) \< 14), 1) -$(warning Your Golang version is go 1.$(GOVERSION)) -$(error Update Golang to version $(shell grep '^go' go.mod)) +GOVERSION:=$(shell go version | cut -d' ' -f 3 | awk -F. '{printf "%d%03d", $$2, $$3}') +ifeq ($(shell expr $(GOVERSION) \< 15005), 1) +$(warning Your Golang version is go 1.$(shell expr $(GOVERSION) / 1000).$(shell expr $(GOVERSION) % 1000)) +$(error Update Golang to version to at least 1.15.5) endif # git modules that need to be loaded