mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08: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:
@ -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
|
||||
}
|
||||
|
||||
|
@ -2,8 +2,10 @@
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/containers/libpod/cmd/podman/cliconfig"
|
||||
)
|
||||
import "github.com/spf13/cobra"
|
||||
|
||||
var varlinkCommand *cliconfig.PodmanCommand
|
||||
var (
|
||||
_varlinkCommand = &cobra.Command{
|
||||
Use: "",
|
||||
}
|
||||
)
|
||||
|
Reference in New Issue
Block a user