Skip to content

Commit

Permalink
Merge branch 'master' of github.com:elastic/beats into golang/1.15.8
Browse files Browse the repository at this point in the history
  • Loading branch information
michalpristas committed Feb 11, 2021
2 parents 567eaf2 + 3ce47ca commit 6becbb5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ coverage.out
.python-version
beat.db
*.keystore
go_env.properties
mage_output_file.go
x-pack/functionbeat/*/fields.yml
x-pack/functionbeat/provider/*/functionbeat-*
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ snapshot:
## release : Builds a release.
.PHONY: release
release: beats-dashboards
@mage dumpVariables
@$(foreach var,$(BEATS) $(PROJECTS_XPACK_PKG),$(MAKE) -C $(var) release || exit 1;)
@$(foreach var,$(BEATS) $(PROJECTS_XPACK_PKG), \
test -d $(var)/build/distributions && test -n "$$(ls $(var)/build/distributions)" || exit 0; \
Expand Down
10 changes: 10 additions & 0 deletions dev-tools/common.bash
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,18 @@ setup_go_root() {
local version=${1}
export PROPERTIES_FILE=go_env.properties
GO_VERSION="${version}" .ci/scripts/install-go.sh

# Setup GOROOT and add go to the PATH.
# shellcheck disable=SC1090
source "${PROPERTIES_FILE}" 2> /dev/null

# Setup GOPATH and add GOPATH/bin to the PATH.
if [ -d "${HOME}" ] ; then
setup_go_path "${HOME}"
else
setup_go_path "${GOROOT}"
fi

debug "$(go version)"
}

Expand Down
6 changes: 6 additions & 0 deletions dev-tools/mage/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ var (
XPackDir = "../x-pack"
RaceDetector = false
TestCoverage = false
PLATFORMS = EnvOr("PLATFORMS", "")
PACKAGES = EnvOr("PACKAGES", "")

// CrossBuildMountModcache, if true, mounts $GOPATH/pkg/mod into
// the crossbuild images at /go/pkg/mod, read-only.
Expand Down Expand Up @@ -160,6 +162,8 @@ func varMap(args ...map[string]interface{}) map[string]interface{} {
"GOARCH": GOARCH,
"GOARM": GOARM,
"Platform": Platform,
"PLATFORMS": PLATFORMS,
"PACKAGES": PACKAGES,
"BinaryExt": BinaryExt,
"XPackDir": XPackDir,
"BeatName": BeatName,
Expand Down Expand Up @@ -203,6 +207,8 @@ BeatLicense = {{.BeatLicense}}
BeatURL = {{.BeatURL}}
BeatUser = {{.BeatUser}}
VersionQualifier = {{.Qualifier}}
PLATFORMS = {{.PLATFORMS}}
PACKAGES = {{.PACKAGES}}
## Functions
Expand Down

0 comments on commit 6becbb5

Please sign in to comment.