forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix generator jobs for go modules (elastic#16288)
## What does this PR do? * Set the correct path to `mage` for generator jobs * Generated beats use go modules for dependency management * New option `beats_revision` is added so users can select which beats revision they want to vendor * if one does not want to depend on `elastic/beats`, he/she needs to add the appropriate `replace` directive to the generated `go.mod` ## Why is it important? As Beats is moving to go modules for dependency management, generated Beats should use that as well. Documentation is provided to help users migrate to go modules in their own Beats. Also, about the new option.
- Loading branch information
Showing
22 changed files
with
276 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# Runs test build for the count metricset | ||
.PHONY: test | ||
test: | ||
$(MAKE) -C beat test | ||
$(MAKE) -C metricbeat test | ||
$(MAKE) -C _templates/beat test | ||
$(MAKE) -C _templates/metricbeat test | ||
|
||
# Cleans up environment | ||
.PHONY: clean | ||
clean: | ||
@$(MAKE) -C beat clean | ||
@$(MAKE) -C metricbeat clean | ||
@$(MAKE) -C _templates/beat clean | ||
@$(MAKE) -C _templates/metricbeat clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
################### {Beat} Configuration Example ######################### | ||
|
||
############################# {Beat} ###################################### | ||
|
||
{beat}: | ||
# Defines how often an event is sent to the output | ||
period: 1s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// +build tools | ||
|
||
// This package contains the tool dependencies of the project. | ||
|
||
package tools | ||
|
||
import ( | ||
_ "github.com/pierrre/gotestcover" | ||
_ "golang.org/x/tools/cmd/goimports" | ||
|
||
_ "github.com/mitchellh/gox" | ||
_ "github.com/reviewdog/reviewdog/cmd/reviewdog" | ||
_ "golang.org/x/lint/golint" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.