Skip to content

Commit

Permalink
fix make lint bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Congrool committed Dec 28, 2021
1 parent 4455011 commit 2239bf1
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ install-golint: ## check golint if not exist install golint tools
ifeq (, $(shell which golangci-lint))
@{ \
set -e ;\
o install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.31.0 ;\
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.31.0 ;\
}
GOLINT_BIN=$(GOBIN)/golangci-lint
GOLINT_BIN=$(shell go env GOPATH)/bin/golangci-lint
else
GOLINT_BIN=$(shell which golangci-lint)
endif
Expand Down
2 changes: 1 addition & 1 deletion hack/make-rules/check_license.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ set -u

licRes=$(
find . -type f -regex '.*\.go\|.*\.sh' ! -path '*/vendor/*' -exec \
sh -c 'head -n4 $1 | grep -Eq "(Copyright|generated|GENERATED)" || echo -e $1' {} {} \;
sh -c 'head -n5 $1 | grep -Eq "(Copyright|generated|GENERATED)" || echo -e $1' {} {} \;
)

if [ -n "${licRes}" ]; then
Expand Down
1 change: 1 addition & 0 deletions pkg/util/iptables/iptables_linux.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build linux
// +build linux

/*
Expand Down
1 change: 1 addition & 0 deletions pkg/util/iptables/iptables_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build linux
// +build linux

/*
Expand Down
1 change: 1 addition & 0 deletions pkg/util/iptables/iptables_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !linux
// +build !linux

/*
Expand Down
1 change: 1 addition & 0 deletions pkg/util/iptables/monitor_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build linux
// +build linux

/*
Expand Down
1 change: 1 addition & 0 deletions pkg/yurthub/network/dummyif_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build linux
// +build linux

/*
Expand Down
1 change: 1 addition & 0 deletions pkg/yurthub/network/dummyif_unsupported.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !linux
// +build !linux

/*
Expand Down

0 comments on commit 2239bf1

Please sign in to comment.