Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Require Go 1.18
Browse files Browse the repository at this point in the history
Signed-off-by: Aditya Sharma <[email protected]>
  • Loading branch information
epk committed Jul 21, 2022
1 parent e9b0b0a commit ef76aef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions makelib/golang.mk
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ GOIMPORTS := $(TOOLS_HOST_DIR)/goimports
GO := go
GOHOST := GOOS=$(GOHOSTOS) GOARCH=$(GOHOSTARCH) go
GO_VERSION := $(shell $(GO) version | sed -ne 's/[^0-9]*\(\([0-9]\.\)\{0,4\}[0-9][^.]\).*/\1/p')
GO_VERSION_MIN := 1.18
ifneq ($(GO_VERSION),$(GO_VERSION_MIN))
$(error "go version $(GO_VERSION) is less than $(GO_VERSION_MIN)")
endif

# we use a consistent version of gofmt even while running different go compilers.
# see https://github.com/golang/go/issues/26397 for more details
Expand Down

0 comments on commit ef76aef

Please sign in to comment.