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

Commit f26ae76

Browse files
authored
Merge pull request #1917 from sdboyer/licenseok-test
ci: Ignore main file in licenseok
2 parents 494b5dc + 1af6f85 commit f26ae76

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ build:
1515
cp ./release/dep-$(PLATFORM)-$(ARCH) dep
1616

1717
licenseok:
18-
go build ./hack/licenseok
18+
go build -o licenseok ./hack/licenseok/main.go
1919

2020
validate: build licenseok
2121
./hack/lint.bash

hack/licenseok/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// +build ignore
2+
13
// Copyright 2017 The Go Authors. All rights reserved.
24
// Use of this source code is governed by a BSD-style
35
// license that can be found in the LICENSE file.

hack/validate-licence.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
# source files to check licence
88
set -e
99

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

0 commit comments

Comments
 (0)