mirror of
https://github.com/docker/cli.git
synced 2026-09-26 09:20:58 -04:00
windows: remove workaround for go#15286 and have compiling work on windows
Signed-off-by: Tibor Vass <tibor@docker.com>
Upstream-commit: 97a4da4cf1
Component: cli
This commit is contained in:
@@ -0,0 +1,8 @@
|
|||||||
|
// +build autogen,windows
|
||||||
|
|
||||||
|
package main
|
||||||
|
|
||||||
|
// TODO: add build scripts that include the winresources (for docker icon etc.)
|
||||||
|
// Those scripts will need to specify an autogen buildtag.
|
||||||
|
|
||||||
|
import _ "github.com/docker/cli/autogen/winresources"
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
package main
|
|
||||||
|
|
||||||
import (
|
|
||||||
"sync/atomic"
|
|
||||||
|
|
||||||
_ "github.com/docker/cli/autogen/winresources"
|
|
||||||
)
|
|
||||||
|
|
||||||
//go:cgo_import_dynamic main.dummy CommandLineToArgvW%2 "shell32.dll"
|
|
||||||
|
|
||||||
var dummy uintptr
|
|
||||||
|
|
||||||
func init() {
|
|
||||||
// Ensure that this import is not removed by the linker. This is used to
|
|
||||||
// ensure that shell32.dll is loaded by the system loader, preventing
|
|
||||||
// go#15286 from triggering on Nano Server TP5.
|
|
||||||
atomic.LoadUintptr(&dummy)
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user