aboutsummaryrefslogtreecommitdiffhomepage
path: root/builder
diff options
context:
space:
mode:
authorRandy Reddig <[email protected]>2024-10-21 16:01:59 +0200
committerGitHub <[email protected]>2024-10-21 16:01:59 +0200
commita191326ea8c2fd054d46e278731e1ec99a098ad2 (patch)
tree7f6855f2e14634cff91853dafbd23af614866a69 /builder
parent23d3a31107b16fddf16e8cea623caea35e05404c (diff)
downloadtinygo-a191326ea8c2fd054d46e278731e1ec99a098ad2.tar.gz
tinygo-a191326ea8c2fd054d46e278731e1ec99a098ad2.zip
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
Diffstat (limited to 'builder')
-rw-r--r--builder/config.go2
1 files changed, 1 insertions, 1 deletions
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
}