diff --git a/cli-plugins/manager/manager_unix.go b/cli-plugins/manager/manager_unix.go index f586acbd8d..6aa5b9e5c4 100644 --- a/cli-plugins/manager/manager_unix.go +++ b/cli-plugins/manager/manager_unix.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows package manager diff --git a/cli-plugins/manager/suffix_unix.go b/cli-plugins/manager/suffix_unix.go index 14f0903f40..afaf0007f5 100644 --- a/cli-plugins/manager/suffix_unix.go +++ b/cli-plugins/manager/suffix_unix.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows package manager diff --git a/cli/command/container/signals_unix.go b/cli/command/container/signals_unix.go index 8db4cfe835..757abbf16e 100644 --- a/cli/command/container/signals_unix.go +++ b/cli/command/container/signals_unix.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows package container diff --git a/cli/command/container/signals_unix_test.go b/cli/command/container/signals_unix_test.go index 61ffe64a1c..84f7f52be3 100644 --- a/cli/command/container/signals_unix_test.go +++ b/cli/command/container/signals_unix_test.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows package container diff --git a/cli/command/image/build/context_unix.go b/cli/command/image/build/context_unix.go index cb2634f079..5bf97c09f4 100644 --- a/cli/command/image/build/context_unix.go +++ b/cli/command/image/build/context_unix.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows package build diff --git a/cli/command/image/build/context_windows.go b/cli/command/image/build/context_windows.go index c577cfa7be..f127e5a140 100644 --- a/cli/command/image/build/context_windows.go +++ b/cli/command/image/build/context_windows.go @@ -1,5 +1,3 @@ -// +build windows - package build import ( diff --git a/cli/config/configfile/file_unix.go b/cli/config/configfile/file_unix.go index 3ca65c6140..6af6718126 100644 --- a/cli/config/configfile/file_unix.go +++ b/cli/config/configfile/file_unix.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows package configfile diff --git a/cli/config/credentials/default_store_unsupported.go b/cli/config/credentials/default_store_unsupported.go index 3028168ac2..c9630ea51b 100644 --- a/cli/config/credentials/default_store_unsupported.go +++ b/cli/config/credentials/default_store_unsupported.go @@ -1,3 +1,4 @@ +//go:build !windows && !darwin && !linux // +build !windows,!darwin,!linux package credentials diff --git a/cli/connhelper/commandconn/commandconn_unix_test.go b/cli/connhelper/commandconn/commandconn_unix_test.go index 18231b8f2a..0103bcea2c 100644 --- a/cli/connhelper/commandconn/commandconn_unix_test.go +++ b/cli/connhelper/commandconn/commandconn_unix_test.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows package commandconn diff --git a/cli/connhelper/commandconn/pdeathsig_nolinux.go b/cli/connhelper/commandconn/pdeathsig_nolinux.go index ab07166724..2adcf08160 100644 --- a/cli/connhelper/commandconn/pdeathsig_nolinux.go +++ b/cli/connhelper/commandconn/pdeathsig_nolinux.go @@ -1,3 +1,4 @@ +//go:build !linux // +build !linux package commandconn diff --git a/cli/connhelper/commandconn/session_unix.go b/cli/connhelper/commandconn/session_unix.go index 6448500d63..57bdecec03 100644 --- a/cli/connhelper/commandconn/session_unix.go +++ b/cli/connhelper/commandconn/session_unix.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows package commandconn diff --git a/opts/hosts_unix.go b/opts/hosts_unix.go index 344b6c2e1b..206834d4dd 100644 --- a/opts/hosts_unix.go +++ b/opts/hosts_unix.go @@ -1,3 +1,4 @@ +//go:build !windows // +build !windows package opts diff --git a/opts/hosts_windows.go b/opts/hosts_windows.go index 97c6d857c2..1e42a2d776 100644 --- a/opts/hosts_windows.go +++ b/opts/hosts_windows.go @@ -1,5 +1,3 @@ -// +build windows - package opts // defaultHost constant defines the default host string used by docker on Windows