From a191326ea8c2fd054d46e278731e1ec99a098ad2 Mon Sep 17 00:00:00 2001 From: Randy Reddig Date: Mon, 21 Oct 2024 16:01:59 +0200 Subject: goenv: parse patch version, add func Compare to compare two Go version strings (#4536) goenv: parse patch version, add func Compare to compare two Go version strings * Parse tests * add Compare function to compare two Go version strings * goenv, builder: parse patch version in Go version string --- builder/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builder') diff --git a/builder/config.go b/builder/config.go index 8db8ff8fe..d1d0a2713 100644 --- a/builder/config.go +++ b/builder/config.go @@ -43,7 +43,7 @@ func NewConfig(options *compileopts.Options) (*compileopts.Config, error) { // compiled with the latest Go version. // This may be a bit too aggressive: if the newer version doesn't change the // Go language we will most likely be able to compile it. - buildMajor, buildMinor, err := goenv.Parse(runtime.Version()) + buildMajor, buildMinor, _, err := goenv.Parse(runtime.Version()) if err != nil { return nil, err } -- cgit v1.2.3