From c359fdb43a78c5b48cbce7ff717be70770861ed4 Mon Sep 17 00:00:00 2001 From: Anuraag Agrawal Date: Tue, 18 Oct 2022 17:06:17 +0900 Subject: [PATCH] Support tinygo dev builds (#49) --- magefile.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/magefile.go b/magefile.go index 2890934fb5ab5..6f95ebe660842 100644 --- a/magefile.go +++ b/magefile.go @@ -85,6 +85,11 @@ func checkTinygoVersion() error { return fmt.Errorf("unexpected tinygo error: %v", err) } + // Assume a dev build is valid. + if strings.Contains(v, "-dev") { + return nil + } + if !strings.HasPrefix(v, fmt.Sprintf("tinygo version %s", tinygoMinorVersion)) { return fmt.Errorf("unexpected tinygo version, wanted %s", tinygoMinorVersion) }