ITADN

old /x/sys package produces error while compiling

#52Openshif3r 创建于 2020-04-21
S
shif3rcommented
## Description I was trying to use docker cli by fsouza in my project but it produces an error when i compile it. https://github.com/golang/go/issues/34610 ## How to reproduce ``` package main import "github.com/fsouza/go-dockerclient" func main() { if _, err := docker.NewClientFromEnv(); err != nil { panic(err) } } ``` ``` module exex.org/helpme go 1.14 require ( github.com/fsouza/go-dockerclient v1.6.4 github.com/mattn/go-isatty v0.0.12 // indirect ) ``` ## Expectations ``` normal compile ``` ## Actual result ``` ..\..\go\pkg\mod\github.com\docker\docker@v1.4.2-0.20191101170500-ac7306503d23\pkg\system\filesys_windows.go:112:24: cannot use uintptr(unsafe.Pointer(&sd[0])) (ty pe uintptr) as type *"golang.org/x/sys/windows".SECURITY_DESCRIPTOR in assignment ``` ## Environment - go version: 1.14.2 - operating system: Windows 10
5 条评论