Skip to content

Commit

Permalink
Support tinygo dev builds (envoyproxy#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraaga authored Oct 18, 2022
1 parent 7b23150 commit c359fdb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit c359fdb

Please sign in to comment.