mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-20 23:39:48 +01: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
b030662e3e
commit
803ab6ed30
@ -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 New Issue
Block a user