Skip to content

Commit

Permalink
[Heartbeat] Generate fields for x-pack heartbeat as well (elastic#23111
Browse files Browse the repository at this point in the history
…) (elastic#23122)

Fixes a bug introduced in elastic#21874
where fields.yml generation in x-pack stopped happening.

(cherry picked from commit 78a8625)
  • Loading branch information
andrewvc authored Dec 14, 2020
1 parent dece80c commit 7eb0e8c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion heartbeat/scripts/mage/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ func Fields() error {
if err != nil {
return err
}
return devtools.GenerateFieldsGo("fields.yml", devtools.OSSBeatDir("include/fields.go"))
return devtools.GenerateFieldsGo("fields.yml", "include/fields.go")
}
2 changes: 1 addition & 1 deletion x-pack/heartbeat/include/fields.go

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion x-pack/heartbeat/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ func TestPackages() error {

// Update updates the generated files (aka make update).
func Update() {
mg.SerialDeps(Config)
mg.SerialDeps(Fields, Config)
}

func Fields() error {
return heartbeat.Fields()
}

// Config generates both the short/reference/docker configs.
Expand Down

0 comments on commit 7eb0e8c

Please sign in to comment.