mirror of
https://github.com/containers/podman
synced 2024-10-20 09:13:46 +00:00
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>
This commit is contained in:
parent
ee27c39f85
commit
2ea8cd1b4f
|
@ -42,10 +42,13 @@ func getMainCommands() []*cobra.Command {
|
||||||
_topCommand,
|
_topCommand,
|
||||||
_umountCommand,
|
_umountCommand,
|
||||||
_unpauseCommand,
|
_unpauseCommand,
|
||||||
_varlinkCommand,
|
|
||||||
volumeCommand.Command,
|
volumeCommand.Command,
|
||||||
_waitCommand,
|
_waitCommand,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(_varlinkCommand.Use) > 0 {
|
||||||
|
rootCommands = append(rootCommands, _varlinkCommand)
|
||||||
|
}
|
||||||
return rootCommands
|
return rootCommands
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,10 @@
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import "github.com/spf13/cobra"
|
||||||
"github.com/containers/libpod/cmd/podman/cliconfig"
|
|
||||||
)
|
|
||||||
|
|
||||||
var varlinkCommand *cliconfig.PodmanCommand
|
var (
|
||||||
|
_varlinkCommand = &cobra.Command{
|
||||||
|
Use: "",
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue