Skip to content

Commit

Permalink
be okay using a development version of go
Browse files Browse the repository at this point in the history
  • Loading branch information
whyrusleeping committed Jun 10, 2016
1 parent 8c5e18e commit 900ef85
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,10 @@ func reqCheckHook(pkgpath string) error {
if len(parts) < 4 {
return fmt.Errorf("unrecognized output from go compiler")
}
if parts[2] == "devel" {
Log("warning: using unknown development version of go, proceed with caution")
return nil
}

havevers := parts[2][2:]

Expand All @@ -676,6 +680,9 @@ func reqCheckHook(pkgpath string) error {
}

gxgocompvers := runtime.Version()
if strings.HasPrefix(gxgocompvers, "devel") {
return nil
}
if strings.HasPrefix(gxgocompvers, "go") {
badreq, err := versionComp(gxgocompvers[2:], reqvers)
if err != nil {
Expand Down

0 comments on commit 900ef85

Please sign in to comment.