-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
assignment mismatch in process_windows.go (#65 wasn't really fixed) #67
Comments
I am running into the same two exact errors when trying to build an app that has a dependency on process_windows.go. |
This is another test on a fresh Linux install, trying to build a Windows version of a program that uses go.elastic.co/apm -- which is my real use case of this library. [mmta@mmta-mb~]$ wget -q https://dl.google.com/go/go1.13.3.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local/ && \
PATH=$PATH:/usr/local/go/bin && \
mkdir testproj && cd testproj && \
{ cat << EOF > main.go
package main
import "go.elastic.co/apm"
func main () {
tx := apm.DefaultTracer.StartTransaction("test","test")
defer tx.End()
}
EOF
} && \
go get -u go.elastic.co/apm && \
go build main.go && echo builds fine for linux
builds fine for linux
[mmta@mmta-mb testproj]$ But then: [mmta@mmta-mb testproj]$ GOOS="windows" go build main.go
../go/src/github.com/elastic/go-sysinfo/providers/windows/arch_windows.go:21:2: cannot find package "github.com/elastic/go-windows" in any of:
/usr/local/go/src/github.com/elastic/go-windows (from $GOROOT)
/home/mmta/go/src/github.com/elastic/go-windows (from $GOPATH)
[mmta@mmta-mb testproj]$ go get -u github.com/elastic/go-windows
[mmta@mmta-mb testproj]$ GOOS="windows" go build main.go
# github.com/elastic/go-sysinfo/providers/windows
../go/src/github.com/elastic/go-sysinfo/providers/windows/process_windows.go:307:11: assignment mismatch: 2 variables but tokenUser.User.Sid.String returns 1 values
../go/src/github.com/elastic/go-sysinfo/providers/windows/process_windows.go:316:12: assignment mismatch: 2 variables but tokenGroup.PrimaryGroup.String returns 1 values
[mmta@mmta-mb testproj]$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I left a comment in #65, but since it's already closed, here's a repost with a quick test result on Windows.
The related upstream change hasn't been reverted,
func (sid *SID) String()
is still returning only 1 value: https://github.com/golang/sys/blob/master/windows/security_windows.go#L231The text was updated successfully, but these errors were encountered: