mirror of
https://github.com/docker/compose.git
synced 2026-02-09 01:59:22 +08:00
Add gocritic to linters
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
This commit is contained in:
@@ -46,13 +46,16 @@ var (
|
||||
|
||||
// DockerScanExecutableName is the OS dependent Docker CLI binary name
|
||||
DockerScanExecutableName = "docker-scan"
|
||||
|
||||
// WindowsExecutableSuffix is the Windows executable suffix
|
||||
WindowsExecutableSuffix = ".exe"
|
||||
)
|
||||
|
||||
func init() {
|
||||
if runtime.GOOS == "windows" {
|
||||
DockerExecutableName = DockerExecutableName + ".exe"
|
||||
DockerComposeExecutableName = DockerComposeExecutableName + ".exe"
|
||||
DockerScanExecutableName = DockerScanExecutableName + ".exe"
|
||||
DockerExecutableName += WindowsExecutableSuffix
|
||||
DockerComposeExecutableName += WindowsExecutableSuffix
|
||||
DockerScanExecutableName += WindowsExecutableSuffix
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user