From b0366743cd1080e107e0560eed790ccaa0537158 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Thu, 4 Mar 2021 21:32:36 +0100 Subject: all: remove support for Go 1.11 and 1.12 Go 1.13 has some important improvements that we would like to use, such as the new integer literals and `errors.Is` which both arrived in Go 1.13. --- builder/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'builder/config.go') diff --git a/builder/config.go b/builder/config.go index b145ec5e3..bfa56361f 100644 --- a/builder/config.go +++ b/builder/config.go @@ -25,8 +25,8 @@ func NewConfig(options *compileopts.Options) (*compileopts.Config, error) { if err != nil { return nil, fmt.Errorf("could not read version from GOROOT (%v): %v", goroot, err) } - if major != 1 || minor < 11 || minor > 16 { - return nil, fmt.Errorf("requires go version 1.11 through 1.16, got go%d.%d", major, minor) + if major != 1 || minor < 13 || minor > 16 { + return nil, fmt.Errorf("requires go version 1.13 through 1.16, got go%d.%d", major, minor) } clangHeaderPath := getClangHeaderPath(goenv.Get("TINYGOROOT")) return &compileopts.Config{ -- cgit v1.2.3