Skip to content

Commit e021f77

Browse files
committed
Update minimum version
1 parent 6fbe25f commit e021f77

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

client/internal/lazyconn/support.go

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,11 @@ import (
44
"strings"
55

66
"github.com/hashicorp/go-version"
7-
log "github.com/sirupsen/logrus"
87
)
98

10-
var minVersion *version.Version
11-
12-
func init() {
13-
// Parse the minimum version
14-
// todo update version before first release
15-
minVer, err := version.NewVersion("0.44.1")
16-
if err != nil {
17-
log.Panic(err)
18-
}
19-
20-
minVersion = minVer
21-
}
9+
var (
10+
minVersion = version.Must(version.NewVersion("0.45.0"))
11+
)
2212

2313
func IsSupported(agentVersion string) bool {
2414
if agentVersion == "development" {

client/internal/lazyconn/support_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ func TestIsSupported(t *testing.T) {
88
want bool
99
}{
1010
{"development", true},
11-
{"0.44.1", true},
12-
{"v0.44.1", true},
13-
{"0.44.1", true},
11+
{"0.45.0", true},
12+
{"v0.45.0", true},
13+
{"0.45.1", true},
1414
{"0.45.1-SNAPSHOT-559e6731", true},
1515
{"v0.45.1-dev", true},
1616
{"a7d5c522", false},

0 commit comments

Comments
 (0)