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

Filebeat X-Pack Module Packaging #8615

Merged
merged 11 commits into from
Oct 17, 2018
6 changes: 6 additions & 0 deletions dev-tools/mage/fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,17 @@ func GenerateFieldsGo(fieldsYML, out string) error {
return err
}

licenseType := BeatLicense
if licenseType == "ASL 2.0" {
licenseType = "ASL2"
}

assetCmd := sh.RunCmd("go", "run",
filepath.Join(beatsDir, assetCmdPath),
"-pkg", "include",
"-in", fieldsYML,
"-out", createDir(out),
"-license", licenseType,
BeatName,
)

Expand Down
5 changes: 0 additions & 5 deletions libbeat/scripts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,6 @@ endif
ifneq ($(shell [[ $(BEAT_NAME) == libbeat || $(BEAT_NAME) == metricbeat ]] && echo true ),true)
mkdir -p include
go run ${ES_BEATS}/dev-tools/cmd/asset/asset.go -pkg include -in fields.yml -out include/fields.go $(BEAT_NAME)
ifeq ($(shell [[ -e ${ES_BEATS}/x-pack/$(BEAT_NAME)/fields.yml ]] && echo true ),true)
mkdir -p include
go run ${ES_BEATS}/dev-tools/cmd/asset/asset.go -pkg include -in ${ES_BEATS}/x-pack/$(BEAT_NAME)/fields.yml -out ${ES_BEATS}/x-pack/$(BEAT_NAME)/include/fields.go -name fields.yml -license Elastic $(BEAT_NAME)
endif

endif

ifneq ($(shell [[ $(BEAT_NAME) == libbeat ]] && echo true ),true)
Expand Down
Loading