-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use go-licenses instead of golicense * remove lint-licenses from semaphore * revert legal directory * generate packaging patch * fix goreleaser file * use f instead of file
- Loading branch information
1 parent
cac9b43
commit cab2c0b
Showing
14 changed files
with
65 additions
and
468 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -39,5 +39,4 @@ archives: | |
format: zip | ||
wrap_in_directory: "{{ .ProjectName }}" | ||
files: | ||
- LICENSE | ||
- legal/**/* |
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 |
---|---|---|
|
@@ -39,5 +39,4 @@ archives: | |
format: zip | ||
wrap_in_directory: "{{ .ProjectName }}" | ||
files: | ||
- LICENSE | ||
- legal/**/* |
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 |
---|---|---|
|
@@ -72,12 +72,13 @@ generate: | |
|
||
.PHONY: deps | ||
deps: | ||
go install github.com/goreleaser/[email protected] && \ | ||
go install github.com/golangci/golangci-lint/cmd/[email protected] && \ | ||
go install github.com/google/[email protected] && \ | ||
go install github.com/goreleaser/[email protected] && \ | ||
go install gotest.tools/[email protected] | ||
|
||
.PHONY: jenkins-deps | ||
# Jenkins only depends on goreleaser, so we omit golangci-lint and golicense | ||
# Jenkins only depends on goreleaser | ||
jenkins-deps: | ||
go get github.com/goreleaser/[email protected] | ||
|
||
|
@@ -162,12 +163,8 @@ cmd/lint/en_US.dic: | |
curl -s "https://chromium.googlesource.com/chromium/deps/hunspell_dictionaries/+/master/en_US.dic?format=TEXT" | base64 -D > $@ | ||
|
||
.PHONY: lint-licenses | ||
## Scan and validate third-party dependency licenses | ||
lint-licenses: build | ||
$(eval token := $(shell (grep github.com ~/.netrc -A 2 | grep password || grep github.com ~/.netrc -A 2 | grep login) | head -1 | awk -F' ' '{ print $$2 }')) | ||
echo Licenses for confluent binary ; \ | ||
[ -t 0 ] && args="" || args="-plain" ; \ | ||
GITHUB_TOKEN=$(token) golicense $${args} .golicense.hcl ./dist/confluent_$(shell go env GOOS)_$(shell go env GOARCH)/confluent || true | ||
lint-licenses: | ||
go-licenses report ./... | ||
|
||
.PHONY: test-prep | ||
test-prep: | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.