From c88c8c27a1595fab1ec081fd9e87b1ec1e2776aa Mon Sep 17 00:00:00 2001 From: Jeff Mitchell Date: Sun, 27 Nov 2016 19:32:57 -0500 Subject: [PATCH] Add cgo info to vault version output --- command/version.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/command/version.go b/command/version.go index fd0ac49b9c..4665436e2e 100644 --- a/command/version.go +++ b/command/version.go @@ -16,7 +16,11 @@ func (c *VersionCommand) Help() string { } func (c *VersionCommand) Run(_ []string) int { - c.Ui.Output(c.VersionInfo.FullVersionNumber(true)) + out := c.VersionInfo.FullVersionNumber(true) + if version.CgoEnabled { + out += " (cgo)" + } + c.Ui.Output(out) return 0 }