Skip to content
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

Update go-sysinfo to v1.1.1 to fix getting distro info on Fedora 30. #14311

Closed
wants to merge 3 commits into from

Conversation

mikemadden42
Copy link
Contributor

@mikemadden42 mikemadden42 commented Oct 29, 2019

No description provided.

@ph ph added the review label Oct 29, 2019
@urso
Copy link

urso commented Dec 4, 2019

@andrewkroh @mikemadden42 Looks like the go-sysinfo update breaks the winlogbeat build:

sys/eventlogging/eventlogging_windows.go:416:18: assignment mismatch: 2 variables but sid.String returns 1 values

@andrewkroh
Copy link
Member

IIRC there was a breaking change in the golang.org/x/sys/windows package. elastic/beats needs a vendor/ update to fix the compatibility issue.

@mikemadden42
Copy link
Contributor Author

jenkins retest this please

@andrewkroh
Copy link
Member

This will be fixed by @fearful-symmetry 's #15196.

@richard-mauri
Copy link

IIRC there was a breaking change in the golang.org/x/sys/windows package. elastic/beats needs a vendor/ update to fix the compatibility issue.

Can someone help me sort out a change I can make to my go.mod file so I can build a simple winlogbeat under GOOS=windows?

I am trying to use beats v7.5.2 and I see the SID.String() returns two args even in v7.6 so if there was a vendor.json change it isn't getting picked up.

$ make build-windows
GOOS=windows GOARCH=amd64 go build -o /Users/rmauri/gopath/src/githubdev.dco.elmae/CloudPlatform/em-top-beats/ebsbeat/bin/windows_amd64/ebsbeat -ldflags "-X githubdev.dco.elmae/CloudPlatform/em-top-beats/ebsbeat/processor/ebsprocessor.Version=0.0.3-abc" main.go

github.com/elastic/beats/winlogbeat/sys/eventlogging

../../../../../pkg/mod/github.com/elastic/beats@v7.5.2+incompatible/winlogbeat/sys/eventlogging/eventlogging_windows.go:416:18: assignment mismatch: 2 variables but sid.String returns 1 values
make: *** [build-ebs-windows] Error 2
w10mkimx1:ebsbeat rmauri$ cat go.mod
module githubdev.dco.elmae/CloudPlatform/em-top-beats/ebsbeat

go 1.13

require (
4d63.com/tz v1.1.0 // indirect
github.com/Microsoft/go-winio v0.4.14 // indirect
github.com/Shopify/sarama v1.25.0 // indirect
github.com/dlclark/regexp2 v1.2.0 // indirect

github.com/docker/distribution v2.7.1+incompatible // indirect
github.com/docker/docker v1.13.1 // indirect
github.com/docker/go-connections v0.4.0 // indirect
github.com/docker/go-units v0.4.0 // indirect

github.com/dop251/goja v0.0.0-20200110130636-0a0a0d8cb944 // indirect
github.com/dop251/goja_nodejs v0.0.0-20200120171228-34eac44e576f // indirect
github.com/dustin/go-humanize v1.0.0 // indirect
github.com/elastic/beats v7.5.2+incompatible
github.com/elastic/ecs v1.4.0 // indirect
github.com/elastic/go-lumber v0.1.0 // indirect
github.com/elastic/go-seccomp-bpf v1.1.0 // indirect
github.com/elastic/go-structform v0.0.6 // indirect
github.com/elastic/go-sysinfo v1.3.0 // indirect
github.com/elastic/go-txfile v0.0.7 // indirect
github.com/elastic/gosigar v0.10.5 // indirect
github.com/fatih/color v1.9.0 // indirect
github.com/garyburd/redigo v1.6.0 // indirect
github.com/go-sourcemap/sourcemap v2.1.2+incompatible // indirect
github.com/gofrs/uuid v3.2.0+incompatible // indirect
github.com/imdario/mergo v0.3.8 // indirect
github.com/miekg/dns v1.1.27 // indirect
github.com/mitchellh/hashstructure v1.0.0 // indirect
github.com/opencontainers/go-digest v1.0.0-rc1 // indirect
github.com/opencontainers/image-spec v1.0.1 // indirect
github.com/pkg/errors v0.9.1
github.com/rcrowley/go-metrics v0.0.0-20190826022208-cac0b30c2563 // indirect
github.com/sirupsen/logrus v1.4.2 // indirect
github.com/spf13/cobra v0.0.5 // indirect
go.uber.org/multierr v1.4.0 // indirect
go.uber.org/zap v1.13.0 // indirect
golang.org/x/crypto v0.0.0-20200117160349-530e935923ad // indirect
golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa // indirect
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d // indirect
golang.org/x/sys v0.0.0-20200122134326-e047566fdf82 // indirect
golang.org/x/time v0.0.0-20191024005414-555d28b269f0 // indirect
google.golang.org/grpc v1.26.0 // indirect
gopkg.in/yaml.v2 v2.2.8 // indirect
//k8s.io/api v0.17.2 // indirect
//k8s.io/client-go v11.0.0+incompatible // indirect
//k8s.io/utils v0.0.0-20200122174043-1e243dd1a584 // indirect

k8s.io/api v0.0.0-20191108065827-59e77acf588f // indirect
k8s.io/client-go v0.0.0-20190620085101-78d2af792bab // indirect
k8s.io/utils v0.0.0-20191030222137-2b95a09bc58d // indirect
)

replace github.com/docker/docker => github.com/docker/engine v1.4.2-0.20190717161051-705d9623b7c1

replace github.com/Sirupsen/logrus v1.4.2 => github.com/sirupsen/logrus v1.4.2

replace github.com/dop251/goja v0.0.0-20200110130636-0a0a0d8cb944 => github.com/andrewkroh/goja v0.0.0-20190128172624-dd2ac4456e20

I am using go1.13.4 with GO111MODULE=on

@andrewkroh
Copy link
Member

Try setting up your go.mod to use the same version that beats v7.5.2 uses:

https://github.com/elastic/beats/blob/v7.5.2/vendor/vendor.json#L3449-L3450

@andresrc andresrc added the Team:Integrations Label for the Integrations team label Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review Team:Integrations Label for the Integrations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants