We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ec46587 + bb48848 commit 750c292Copy full SHA for 750c292
Makefile
@@ -1,4 +1,4 @@
1
-.PHONY: all container push clean node-problem-detector
+.PHONY: all container push clean node-problem-detector vet fmt
2
3
all: push
4
@@ -9,7 +9,13 @@ PROJ = google_containers
9
10
PKG_SOURCES := $(shell find pkg -name '*.go')
11
12
-node-problem-detector: $(PKG_SOURCES) node_problem_detector.go
+vet:
13
+ go list ./... | grep -v "./vendor/*" | xargs go vet
14
+
15
+fmt:
16
+ find . -type f -name "*.go" | grep -v "./vendor/*" | xargs gofmt -s -w -l
17
18
+node-problem-detector: $(PKG_SOURCES) node_problem_detector.go fmt vet
19
GOOS=linux go build -ldflags '-w -extldflags "-static"' -o node-problem-detector
20
21
test:
0 commit comments