license: add bill of materials.

This commit is contained in:
Diego Pontoriero
2017-12-18 23:00:14 -08:00
parent 9d4b1041bd
commit 6d4fef4b9a
6 changed files with 1041 additions and 3 deletions

View File

@@ -33,9 +33,10 @@ release-binary:
@go build -o /go/bin/dex -v -ldflags $(LD_FLAGS) $(REPO_PATH)/cmd/dex
.PHONY: revendor
revendor:
revendor: bin/license-bill-of-materials
@glide up -v
@glide-vc --use-lock-file --no-tests --only-code
@./bin/license-bill-of-materials ./cmd/dex ./cmd/example-app > bill-of-materials.json
test:
@go test -v -i $(shell go list ./... | grep -v '/vendor/')
@@ -75,6 +76,9 @@ bin/protoc: scripts/get-protoc
bin/protoc-gen-go:
@go install -v $(REPO_PATH)/vendor/github.com/golang/protobuf/protoc-gen-go
bin/license-bill-of-materials:
@CGO_ENABLED=1 go install -v $(REPO_PATH)/vendor/github.com/coreos/license-bill-of-materials
.PHONY: check-go-version
check-go-version:
@./scripts/check-go-version