summaryrefslogtreecommitdiff
path: root/cmd/podman/commands.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-02-12 15:38:30 -0600
committerbaude <bbaude@redhat.com>2019-02-12 15:53:19 -0600
commit2ea8cd1b4fc5778e0e0b9a83d86fca1f41e76235 (patch)
tree34736460266576df75be40ec5fcb35739efc4ada /cmd/podman/commands.go
parentee27c39f85507993c0a3dfe3c4dfab4c7b7e5e00 (diff)
downloadpodman-2ea8cd1b4fc5778e0e0b9a83d86fca1f41e76235.tar.gz
podman-2ea8cd1b4fc5778e0e0b9a83d86fca1f41e76235.tar.bz2
podman-2ea8cd1b4fc5778e0e0b9a83d86fca1f41e76235.zip
Only build varlink when buildtag is available
Correct mistake that broke things like dlv where we should only try to add the varlink command to podman when the 'varlink' build tag is present. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/commands.go')
-rw-r--r--cmd/podman/commands.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/podman/commands.go b/cmd/podman/commands.go
index 2c56d5dec..71eb35048 100644
--- a/cmd/podman/commands.go
+++ b/cmd/podman/commands.go
@@ -42,10 +42,13 @@ func getMainCommands() []*cobra.Command {
_topCommand,
_umountCommand,
_unpauseCommand,
- _varlinkCommand,
volumeCommand.Command,
_waitCommand,
}
+
+ if len(_varlinkCommand.Use) > 0 {
+ rootCommands = append(rootCommands, _varlinkCommand)
+ }
return rootCommands
}