Building from beats/metricbeat works just fine but building from x-pack/metricbeat fails
go version go1.14.3 darwin/amd64
in ....../beats/x-pack/metricbeat
GOOS=linux GOARCH=arm mage build
>> build: Building metricbeat
github.com/godror/godror
../../vendor/github.com/godror/godror/orahlp.go:450:53: undefined: VersionInfo
../../vendor/github.com/godror/godror/orahlp.go:459:53: undefined: VersionInfo
../../vendor/github.com/godror/godror/orahlp.go:477:19: undefined: VersionInfo
../../vendor/github.com/godror/godror/orahlp.go:478:19: undefined: VersionInfo
../../vendor/github.com/godror/godror/orahlp.go:479:30: undefined: ObjectType
../../vendor/github.com/godror/godror/orahlp.go:480:31: undefined: Event
../../vendor/github.com/godror/godror/orahlp.go:480:41: undefined: Subscription
../../vendor/github.com/godror/godror/orahlp.go:481:10: undefined: StartupMode
../../vendor/github.com/godror/godror/orahlp.go:482:11: undefined: ShutdownMode
../../vendor/github.com/godror/godror/orahlp.go:483:59: undefined: Data
../../vendor/github.com/godror/godror/orahlp.go:483:59: too many errors
Error: running "go build -o metricbeat -ldflags -s -X github.com/elastic/beats/v7/libbeat/version.commit=5e69e25b920e3d93bec76a09a31da3ab35a55607 -X github.com/elastic/beats/v7/libbeat/version.buildTime=2020-06-18T12:50:51Z" failed with exit code 2