mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-10 15:14:09 +00:00
vmctl: fix panic on start (#3300)
The change disables initing the `-version` flag in new `urfave/cli/v2` update. The `-version` flag conflicts with the identical flag from `lib/buildinfo` and causes panic. See https://github.com/VictoriaMetrics/VictoriaMetrics/pull/3299 Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
parent
a75d85b11e
commit
ac4e23de39
1 changed files with 3 additions and 0 deletions
|
@ -34,6 +34,9 @@ func main() {
|
||||||
Name: "vmctl",
|
Name: "vmctl",
|
||||||
Usage: "VictoriaMetrics command-line tool",
|
Usage: "VictoriaMetrics command-line tool",
|
||||||
Version: buildinfo.Version,
|
Version: buildinfo.Version,
|
||||||
|
// Disable `-version` flag to avoid conflict with lib/buildinfo flags
|
||||||
|
// see https://github.com/urfave/cli/issues/1560
|
||||||
|
HideVersion: true,
|
||||||
Commands: []*cli.Command{
|
Commands: []*cli.Command{
|
||||||
{
|
{
|
||||||
Name: "opentsdb",
|
Name: "opentsdb",
|
||||||
|
|
Loading…
Reference in a new issue