Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

ci: Ignore main file in licenseok #1917

Merged
merged 1 commit into from
Jul 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ build:
cp ./release/dep-$(PLATFORM)-$(ARCH) dep

licenseok:
go build ./hack/licenseok
go build -o licenseok ./hack/licenseok/main.go

validate: build licenseok
./hack/lint.bash
Expand Down
2 changes: 2 additions & 0 deletions hack/licenseok/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build ignore

// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
Expand Down
2 changes: 1 addition & 1 deletion hack/validate-licence.bash
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
# source files to check licence
set -e

go build ./hack/licenseok
go build -o licenseok ./hack/licenseok/main.go
find . -path ./vendor -prune -o -regex ".+\.pb\.go$" -prune -o -type f -regex ".*\.\(go\|proto\)$"\
-printf '%P\n' | xargs ./licenseok