Skip to content

Commit

Permalink
Fix build in feature-suricata branch (#8625)
Browse files Browse the repository at this point in the history
* Vendorize goimports (#8619)

* Fix make fmt after vendoring goimports (#8623)
  • Loading branch information
adriansr authored Oct 16, 2018
1 parent 3ab125f commit 0211eda
Show file tree
Hide file tree
Showing 18 changed files with 12,393 additions and 12 deletions.
4 changes: 2 additions & 2 deletions NOTICE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2770,8 +2770,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

--------------------------------------------------------------------
Dependency: golang.org/x/tools
Version: release-branch.go1.9
Revision: 5d2fd3ccab986d52112bf301d47a819783339d0e
Version: release-branch.go1.10
Revision: 156d532d4f67148ceab07c3b59ed7fa13bdbf00c
License type (autodetected): BSD-3-Clause
./vendor/golang.org/x/tools/LICENSE:
--------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions libbeat/scripts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ crosscompile: $(GOFILES)
.PHONY: check
check: check-headers python-env prepare-tests ## @build Checks project and source code if everything is according to standard
@go vet ${GOPACKAGES}
@go get $(GOIMPORTS_REPO)
@go get $(ES_BEATS)/vendor/$(GOIMPORTS_REPO)
@goimports -local ${GOIMPORTS_LOCAL_PREFIX} -l ${GOFILES_NOVENDOR} | (! grep .) || (echo "Code differs from goimports' style ^" && false)
@${FIND} -name '*.py' -exec autopep8 -d --max-line-length 120 {} \; | (! grep . -q) || (echo "Code differs from autopep8's style" && false)
@${FIND} -wholename "*tests/system/test_*.py" -perm ${PERM_EXEC} -exec false {} + || (echo "Python test files shouldn't be executable, otherwise nose doesn't find them" && false)
Expand All @@ -135,7 +135,7 @@ endif

.PHONY: fmt
fmt: add-headers python-env ## @build Runs `goimports -l -w` and `autopep8`on the project's source code, modifying any files that do not match its style.
@go get $(GOIMPORTS_REPO)
@go get $(ES_BEATS)/vendor/$(GOIMPORTS_REPO)
@goimports -local ${GOIMPORTS_LOCAL_PREFIX} -l -w ${GOFILES_NOVENDOR}
@${FIND} -name '*.py' -exec ${PYTHON_ENV}/bin/autopep8 --in-place --max-line-length 120 {} \;

Expand Down
45 changes: 45 additions & 0 deletions vendor/golang.org/x/tools/cmd/goimports/doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0211eda

Please sign in to comment.