We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5893e1 commit 0d77470Copy full SHA for 0d77470
pkg/options/driver.go
@@ -16,13 +16,12 @@
16
package options
17
18
import (
19
+ "errors"
20
"fmt"
21
"net/url"
22
"path/filepath"
23
"sort"
24
- "github.com/blang/semver"
25
-
26
"github.com/falcosecurity/falcoctl/internal/config"
27
drivertype "github.com/falcosecurity/falcoctl/pkg/driver/type"
28
)
@@ -67,8 +66,8 @@ func (d *Driver) Validate() error {
67
66
return fmt.Errorf("host-root must be an absolute path (%s)", d.HostRoot)
68
}
69
70
- if _, err := semver.Parse(d.Version); err != nil {
71
- return fmt.Errorf("version must be semver compatible (%s): %w", d.Version, err)
+ if len(d.Version) == 0 {
+ return errors.New("version is mandatory")
72
73
74
for _, repo := range d.Repos {
0 commit comments