Skip to content

Commit

Permalink
Vendorize go-licenser
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano committed Aug 9, 2019
1 parent 93fb210 commit 972974a
Show file tree
Hide file tree
Showing 15 changed files with 967 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libbeat/scripts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ COVERAGE_DIR?=${BUILD_DIR}/coverage
COVERAGE_TOOL?=${BEAT_GOPATH}/bin/gotestcover
COVERAGE_TOOL_REPO?=github.com/elastic/beats/vendor/github.com/pierrre/gotestcover
TESTIFY_TOOL_REPO?=github.com/elastic/beats/vendor/github.com/stretchr/testify/assert
GO_LICENSER_REPO?=github.com/elastic/beats/vendor/github.com/elastic/go-licenser
NOW=$(shell date -u '+%Y-%m-%dT%H:%M:%SZ')
GOBUILD_FLAGS?=-i -ldflags "-X github.com/elastic/beats/libbeat/version.buildTime=$(NOW) -X github.com/elastic/beats/libbeat/version.commit=$(COMMIT_ID)"
GOIMPORTS=goimports
Expand Down Expand Up @@ -132,14 +133,14 @@ check: check-headers python-env prepare-tests ## @build Checks project and sourc
.PHONY: $(.OVER)check-headers
$(.OVER)check-headers:
ifndef CHECK_HEADERS_DISABLED
@go get -u github.com/elastic/go-licenser
@go get -u $(GO_LICENSER_REPO)
@go-licenser -d -license ${LICENSE}
endif

.PHONY: $(.OVER)add-headers
$(.OVER)add-headers:
ifndef CHECK_HEADERS_DISABLED
@go get github.com/elastic/go-licenser
@go get -u $(GO_LICENSER_REPO)
@go-licenser -license ${LICENSE}
endif

Expand Down
47 changes: 47 additions & 0 deletions vendor/github.com/elastic/go-licenser/CONTRIBUTING.md

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

202 changes: 202 additions & 0 deletions vendor/github.com/elastic/go-licenser/LICENSE

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

105 changes: 105 additions & 0 deletions vendor/github.com/elastic/go-licenser/Makefile

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

5 changes: 5 additions & 0 deletions vendor/github.com/elastic/go-licenser/NOTICE

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

Loading

0 comments on commit 972974a

Please sign in to comment.