File tree 2 files changed +6
-16
lines changed
2 files changed +6
-16
lines changed Original file line number Diff line number Diff line change @@ -4,21 +4,11 @@ import (
4
4
"strings"
5
5
6
6
"github.com/hashicorp/go-version"
7
- log "github.com/sirupsen/logrus"
8
7
)
9
8
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
+ )
22
12
23
13
func IsSupported (agentVersion string ) bool {
24
14
if agentVersion == "development" {
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ func TestIsSupported(t *testing.T) {
8
8
want bool
9
9
}{
10
10
{"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 },
14
14
{"0.45.1-SNAPSHOT-559e6731" , true },
15
15
{"v0.45.1-dev" , true },
16
16
{"a7d5c522" , false },
You can’t perform that action at this time.
0 commit comments