From 9572293c5784fba2ac02fba3b0a7c9f8592e41a8 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Fri, 29 Jan 2021 14:01:13 +0530 Subject: [PATCH] Bump up minimum required Go version (#16825) The Makefile has a command to validate Go version. We bump it up to require 1.15. --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 090a018248..88d8540b92 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,7 @@ LDFLAGS += -X "github.com/mattermost/mattermost-server/v5/model.BuildEnterpriseR GO_MAJOR_VERSION = $(shell $(GO) version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f1) GO_MINOR_VERSION = $(shell $(GO) version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f2) MINIMUM_SUPPORTED_GO_MAJOR_VERSION = 1 -MINIMUM_SUPPORTED_GO_MINOR_VERSION = 13 +MINIMUM_SUPPORTED_GO_MINOR_VERSION = 15 GO_VERSION_VALIDATION_ERR_MSG = Golang version is not supported, please update to at least $(MINIMUM_SUPPORTED_GO_MAJOR_VERSION).$(MINIMUM_SUPPORTED_GO_MINOR_VERSION) # GOOS/GOARCH of the build host, used to determine whether we're cross-compiling or not @@ -591,11 +591,11 @@ endif gen-serialized: ## Generates serialization methods for hot structs # This tool only works at a file level, not at a package level. - # There will be some warnings about "unresolved identifiers", - # but that is because of the above problem. Since we are generating - # methods for all the relevant files at a package level, all - # identifiers will be resolved. An alternative to remove the warnings - # would be to temporarily move all the structs to the same file, + # There will be some warnings about "unresolved identifiers", + # but that is because of the above problem. Since we are generating + # methods for all the relevant files at a package level, all + # identifiers will be resolved. An alternative to remove the warnings + # would be to temporarily move all the structs to the same file, # but that involves a lot of manual work. $(GO) get -modfile=go.tools.mod github.com/tinylib/msgp $(GOBIN)/msgp -file=./model/session.go -tests=false -o=./model/session_serial_gen.go