Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,12 @@ PLATFORM_TYPE=$(uname)
if [[ "${CPU_ARCH}" == "x86_64" ]]; then
case "${PLATFORM_TYPE}" in
Linux|Darwin)
export GOX_FLAGS="-arch amd64"
export GO_ARCH_TYPE="amd64"
;;
MINGW*)
export GOX_FLAGS="-arch 386"
;;
esac
elif [[ "${CPU_ARCH}" == "aarch64" || "${CPU_ARCH}" == "arm64" ]]; then
export GOX_FLAGS="-arch arm"
export GO_ARCH_TYPE="arm64"
else
echo "Unsupported OS"
exit 1
fi
fi
415 changes: 0 additions & 415 deletions NOTICE.txt

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion auditbeat/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ BEAT_NAME=auditbeat
BEAT_TITLE=Auditbeat
SYSTEM_TESTS=true
TEST_ENVIRONMENT?=true
GOX_OS?=linux windows
ES_BEATS?=..
EXCLUDE_COMMON_UPDATE_TARGET=true

Expand Down
1 change: 0 additions & 1 deletion filebeat/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ BEAT_NAME?=filebeat
BEAT_TITLE?=Filebeat
SYSTEM_TESTS?=true
TEST_ENVIRONMENT?=true
GOX_FLAGS=-arch="amd64 386 arm ppc64 ppc64le"
ES_BEATS?=..
EXCLUDE_COMMON_UPDATE_TARGET=true

Expand Down
2 changes: 0 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ require (
github.com/magefile/mage v1.15.0
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/miekg/dns v1.1.66
github.com/mitchellh/gox v1.0.1
github.com/osquery/osquery-go v0.0.0-20231108163517-e3cde127e724
github.com/pkg/errors v0.9.1
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
Expand Down Expand Up @@ -383,7 +382,6 @@ require (
github.com/minio/sha256-simd v1.0.1 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/iochan v1.0.0 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/moby/docker-image-spec v1.3.1 // indirect
Expand Down
5 changes: 0 additions & 5 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,6 @@ github.com/hashicorp/go-rootcerts v1.0.2/go.mod h1:pqUvnprVnM5bf7AOirdbb01K4ccR3
github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8=
github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
github.com/hashicorp/go-version v1.0.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
github.com/hashicorp/go-version v1.7.0 h1:5tqGy27NaOTB8yJKUZELlFAS/LTKJkrmONwQKeRZfjY=
github.com/hashicorp/go-version v1.7.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
github.com/hashicorp/golang-lru/v2 v2.0.7 h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k=
Expand Down Expand Up @@ -787,10 +786,6 @@ github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU=
github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8=
github.com/mitchellh/gox v1.0.1 h1:x0jD3dcHk9a9xPSDN6YEL4xL6Qz0dvNYm8yZqui5chI=
github.com/mitchellh/gox v1.0.1/go.mod h1:ED6BioOGXMswlXa2zxfh/xdd5QhwYliBFn9V18Ap4z4=
github.com/mitchellh/iochan v1.0.0 h1:C+X3KsSTLFVBr/tK1eYN/vs4rJcvsiLU338UhYPJWeY=
github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY=
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ=
Expand Down
10 changes: 0 additions & 10 deletions libbeat/scripts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ TEST_ENVIRONMENT?=false ## @testing if true, "make testsuite" runs integration t
SYSTEM_TESTS?=false ## @testing if true, "make test" and "make testsuite" run unit tests and system tests
STRESS_TESTS?=false ## @testing if true, "make test" and "make testsuite" run also run the stress tests
STRESS_TEST_OPTIONS?=-timeout=20m -race -v
GOX_OS?=linux darwin windows freebsd netbsd openbsd ## @Building List of all OS to be supported by "make crosscompile".
GOX_OSARCH?=!darwin/arm !darwin/386 !linux/386 !windows/386 !freebsd/386 !netbsd/386 !openbsd/386 !linux/ppc64 ## @building Space-separated list of GOOS/GOARCH pairs to exclude (unsupported by GO and generated by GOX) in the "make crosscompile" build.
GOX_FLAGS?= ## @building Additional flags to append to the gox command used by "make crosscompile".
# XXX: Should be switched back to `snapshot` once the Elasticsearch
# snapshots are working. https://github.com/elastic/beats/pull/6416
TESTING_ENVIRONMENT?=snapshot## @testing The name of the environment under test
Expand Down Expand Up @@ -139,13 +136,6 @@ ${BEAT_NAME}.test: $(GOFILES_ALL)
@go build -o /dev/null
@go test $(RACE) -c -coverpkg ${GOPACKAGES_COMMA_SEP}

.PHONY: crosscompile
crosscompile: ## @build Cross-compile beat for the OS'es specified in GOX_OS variable. The binaries are placed in the build/bin directory.
crosscompile: $(GOFILES)
go ${INSTALL_CMD} github.com/mitchellh/gox
mkdir -p ${BUILD_DIR}/bin
gox -output="${BUILD_DIR}/bin/{{.Dir}}-{{.OS}}-{{.Arch}}" -os="$(strip $(GOX_OS))" -osarch="$(strip $(GOX_OSARCH))" ${GOX_FLAGS}

.PHONY: check
check: check-headers mage ## @build Checks project and source code if everything is according to standard
@mage check
Expand Down
2 changes: 0 additions & 2 deletions tools/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ import (
_ "golang.org/x/tools/cmd/stringer"
_ "gotest.tools/gotestsum/cmd"

_ "github.com/mitchellh/gox"

_ "go.elastic.co/go-licence-detector"

_ "github.com/elastic/go-licenser"
Expand Down
1 change: 0 additions & 1 deletion winlogbeat/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ BEAT_NAME=winlogbeat
BEAT_TITLE=Winlogbeat
SYSTEM_TESTS=true
TEST_ENVIRONMENT=false
GOX_OS=windows
EXCLUDE_COMMON_UPDATE_TARGET=true

include ../libbeat/scripts/Makefile
Expand Down
6 changes: 1 addition & 5 deletions x-pack/dockerlogbeat/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@ SYSTEM_TESTS?=false
TEST_ENVIRONMENT?=true
ES_BEATS?=../../

# Metricbeat can only be cross-compiled on platforms not requiring CGO.
GOX_OS=linux
GOX_FLAGS=-arch="amd64 386 arm ppc64 ppc64le"

include $(ES_BEATS)/dev-tools/make/mage.mk


.PHONY: unit-tests
unit-tests: mage
mage unitTest
mage unitTest
1 change: 0 additions & 1 deletion x-pack/osquerybeat/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#
# Variables
#
GOX_FLAGS=-arch="amd64 386 arm ppc64 ppc64le"
ES_BEATS?=../../

#
Expand Down
1 change: 0 additions & 1 deletion x-pack/winlogbeat/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# Variables
#
ES_BEATS ?= ../..
GOX_OS := windows

#
# Includes
Expand Down
Loading