File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 11# Go parameters
2- GOENV ?= GO15VENDOREXPERIMENT=1
2+ GOENV ?=
33GO ?= $(GOENV ) go
44GODEP ?= $(GOENV ) godep
55GOBUILD ?= $(GO ) build
@@ -41,13 +41,6 @@ REV = $(shell git rev-parse --short HEAD 2>/dev/null || echo "nogit")
4141LDFLAGS = "-X ` go list ./pkg/scwversion ` .GITCOMMIT=$(REV ) -s"
4242BUILDER = scaleway-cli-builder
4343
44- # Check go version
45- GOVERSIONMAJOR = $(shell go version | grep -o '[1-9].[0-9]' | cut -d '.' -f1)
46- GOVERSIONMINOR = $(shell go version | grep -o '[1-9].[0-9]' | cut -d '.' -f2)
47- VERSION_GE_1_5 = $(shell [ $(GOVERSIONMAJOR ) -gt 1 -o $(GOVERSIONMINOR ) -ge 5 ] && echo true)
48- ifneq ($(VERSION_GE_1_5 ) ,true)
49- $(error Bad go version, please install a version greater than or equal to 1.5)
50- endif
5144
5245BUILD_LIST = $(foreach int, $(COMMANDS ) , $(int ) _build)
5346CLEAN_LIST = $(foreach int, $(COMMANDS ) $(PACKAGES ) , $(int ) _clean)
You can’t perform that action at this time.
0 commit comments