From 8dfb317d280e4c9cce4021cd16fa772d0699c590 Mon Sep 17 00:00:00 2001 From: Dan Kegel Date: Fri, 8 Apr 2022 08:20:28 -0700 Subject: [PATCH] Allow building with go 1.18 --- builder/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/config.go b/builder/config.go index fcfa5548..a1930507 100644 --- a/builder/config.go +++ b/builder/config.go @@ -33,8 +33,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 < 15 || minor > 17 { - return nil, fmt.Errorf("requires go version 1.15 through 1.17, got go%d.%d", major, minor) + if major != 1 || minor < 15 || minor > 18 { + return nil, fmt.Errorf("requires go version 1.15 through 1.18, got go%d.%d", major, minor) } clangHeaderPath := getClangHeaderPath(goenv.Get("TINYGOROOT"))