Skip to content

Commit

Permalink
Merge pull request #558 from vrischmann/master
Browse files Browse the repository at this point in the history
Detect a devel version correctly in LDFlags()
  • Loading branch information
fd0 committed Aug 1, 2016
2 parents c7f5ac2 + d2834b6 commit 2de233f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ func (cs Constants) LDFlags() string {
l := make([]string, 0, len(cs))

v := runtime.Version()
if strings.HasPrefix(v, "go1.5") || strings.HasPrefix(v, "go1.6") || strings.HasPrefix(v, "go1.7") {
if strings.HasPrefix(v, "devel") || strings.HasPrefix(v, "go1.5") || strings.HasPrefix(v, "go1.6") || strings.HasPrefix(v, "go1.7") {
for k, v := range cs {
l = append(l, fmt.Sprintf(`-X "%s=%s"`, k, v))
}
Expand Down

0 comments on commit 2de233f

Please sign in to comment.