-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathMakefile
More file actions
428 lines (341 loc) · 15.2 KB
/
Makefile
File metadata and controls
428 lines (341 loc) · 15.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
export TIMESTAMP ?= $(shell date +%s)
TIMING_CMD ?=
MAKEFILE:=$(realpath $(lastword $(MAKEFILE_LIST)))
ROOT_DIRECTORY:=$(realpath $(dir $(MAKEFILE)))
PLATFORM_PACKAGE=github.com/tidepool-org/platform
REPOSITORY_PACKAGE:=$(shell sed -En 's/^module (.*)$$/\1/p' $(ROOT_DIRECTORY)/go.mod)
REPOSITORY_NAME:=$(notdir $(REPOSITORY_PACKAGE))
BIN_DIRECTORY := ${ROOT_DIRECTORY}/_bin
PATH := ${PATH}:${BIN_DIRECTORY}
ifneq ($(wildcard ./version.env),)
include ./version.env
endif
VERSION_BASE?=$(REPOSITORY_NAME)
VERSION_SHORT_COMMIT?=$(shell git rev-parse --short HEAD 2> /dev/null || echo "dev")
VERSION_FULL_COMMIT?=$(shell git rev-parse HEAD 2> /dev/null || echo "dev")
VERSION_PACKAGE?=$(PLATFORM_PACKAGE)/application
GOIMPORTS_LOCAL:=$(PLATFORM_PACKAGE)
GO_BUILD_FLAGS+=-buildvcs=false
ifdef DELVE_PORT
GO_BUILD_FLAGS+=-gcflags 'all=-N -l'
endif
GO_LD_FLAGS:=-ldflags '-X $(VERSION_PACKAGE).VersionBase=$(VERSION_BASE) -X $(VERSION_PACKAGE).VersionShortCommit=$(VERSION_SHORT_COMMIT) -X $(VERSION_PACKAGE).VersionFullCommit=$(VERSION_FULL_COMMIT)'
FIND_CMD=find . -not -path '*/.git/*' -not -path '*/.gvm_local/*' -not -path '*/.vs_code/*'
FIND_MAIN_CMD:=$(FIND_CMD) -not -path './private/*' -path './$(BUILD)*' -type f -name '*.go' -not -name '*_test.go' -exec grep -E -l '^\s*func\s+main\s*(\s*)' {} \;
TRANSFORM_GO_BUILD_CMD:=sed 's|\.\(.*\)\(/[^/]*\)/[^/]*|_bin\1\2\2 .\1\2/.|'
GO_BUILD_CMD:=go build $(GO_BUILD_FLAGS) $(GO_LD_FLAGS)
ifndef GOTEST_PKGS
ifdef TEST
GOTEST_PKGS=$(REPOSITORY_PACKAGE)/$(TEST)
else
GOTEST_PKGS=./...
endif
endif
GOTEST_FLAGS ?=
GINKGO_FLAGS += --require-suite --poll-progress-after=10s --poll-progress-interval=20s -r
GINKGO_CI_WATCH_FLAGS += --randomize-all --succinct --fail-on-pending --cover --trace --race
GINKGO_CI_FLAGS += $(GINKGO_CI_WATCH_FLAGS) --randomize-suites --keep-going
DOCKER_LOGIN_CMD ?= docker login
DOCKER_BUILD_CMD ?= docker build
DOCKER_PUSH_CMD ?= docker push
DOCKER_TAG_CMD ?= docker tag
ifdef TRAVIS_COMMIT
ifdef TRAVIS_BRANCH
ifeq ($(TRAVIS_BRANCH),master)
DOCKER:=true
else # ifneq ($(shell go env GOWORK),) # TODO: Enable after BACK-3295 is merged into master
DOCKER:=true
endif
ifdef DOCKER
DOCKER_TRAVIS_BRANCH:=$(subst /,-,$(TRAVIS_BRANCH))
endif
endif
endif
ifdef DOCKER
ifdef DOCKER_SERVICE
DOCKER_REPOSITORY:=tidepool/$(REPOSITORY_NAME)-$(DOCKER_SERVICE)
ifneq ($(shell go env GOWORK),)
DOCKER_REPOSITORY:=$(DOCKER_REPOSITORY)-private
endif
endif
endif
PLUGINS=abbott
ifeq ($(shell go env GOWORK),)
PLUGIN_VISIBILITY:=public
else
PLUGIN_VISIBILITY:=private
endif
SERVICES=auth blob data migrations prescription task tools
default: test
tmp:
@mkdir -p $(ROOT_DIRECTORY)/_tmp
bindir:
@mkdir -p $(ROOT_DIRECTORY)/_bin
CompileDaemon:
ifeq ($(shell which CompileDaemon),)
@cd $(ROOT_DIRECTORY) && \
echo "go install github.com/githubnemo/CompileDaemon" && \
GOWORK=off go install github.com/githubnemo/CompileDaemon
endif
mockgen:
ifeq ($(shell which mockgen),)
@cd $(ROOT_DIRECTORY) && \
echo "go install go.uber.org/mock/mockgen" && \
GOWORK=off go install go.uber.org/mock/mockgen
endif
ginkgo:
ifeq ($(shell which ginkgo),)
@cd $(ROOT_DIRECTORY) && \
echo "go install github.com/onsi/ginkgo/v2/ginkgo" && \
GOWORK=off go install github.com/onsi/ginkgo/v2/ginkgo
endif
goimports:
ifeq ($(shell which goimports),)
@cd $(ROOT_DIRECTORY) && \
echo "go install golang.org/x/tools/cmd/goimports" && \
GOWORK=off go install golang.org/x/tools/cmd/goimports
endif
buildable: export GOBIN = ${BIN_DIRECTORY}
buildable: bindir CompileDaemon ginkgo goimports
plugins-visibility:
@cd $(ROOT_DIRECTORY) && \
for PLUGIN in $(PLUGINS); do $(MAKE) plugin-visibility PLUGIN="$${PLUGIN}"; done
plugin-visibility:
ifdef PLUGIN
@cd $(ROOT_DIRECTORY) && \
{ [ -z `go env GOWORK` ] || GOWORK_FLAGS=-mod=readonly; } && \
echo "Plugin $(PLUGIN) is `go run $(GO_BUILD_FLAGS) $${GOWORK_FLAGS:-} plugin/visibility/visibility.go`."
endif
plugins-visibility-public:
@cd $(ROOT_DIRECTORY) && \
for PLUGIN in $(PLUGINS); do $(MAKE) plugin-visibility-public PLUGIN="$${PLUGIN}"; done
plugin-visibility-public:
ifdef PLUGIN
@cd $(ROOT_DIRECTORY) && \
{ [ ! -e go.work ] || go work edit -dropuse=./private/plugin/$(PLUGIN); } && \
{ [ "`go list -m -mod=readonly`" != "${REPOSITORY_PACKAGE}" ] || rm go.work go.work.sum 2> /dev/null || true; } && \
git config set --local submodule.private/plugin/$(PLUGIN).update none && \
git config set --file=.gitmodules submodule.private/plugin/$(PLUGIN).update none && \
$(MAKE) plugin-visibility
endif
plugins-visibility-private:
@cd $(ROOT_DIRECTORY) && \
for PLUGIN in $(PLUGINS); do $(MAKE) plugin-visibility-private PLUGIN="$${PLUGIN}"; done
plugin-visibility-private:
ifdef PLUGIN
@cd $(ROOT_DIRECTORY) && \
{ git config unset --local submodule.private/plugin/$(PLUGIN).update || true; } && \
{ git config unset --file=.gitmodules submodule.private/plugin/$(PLUGIN).update || true; } && \
git submodule update --init private/plugin/$(PLUGIN) && \
{ [ -e go.work ] || go work init .; } && \
go work edit -use=./private/plugin/$(PLUGIN) && \
go work edit -go=`sed -n 's/^go //p' go.mod` && \
go work edit -toolchain=`grep -q '^toolchain' go.mod && sed -n 's/^toolchain //p' go.mod || sed -n 's/^go /go/p' go.mod` && \
$(MAKE) plugin-visibility
endif
ci: ci-init ci-generate ci-build ci-test ci-docker
init: go-mod-download
ci-init: init mockgen goimports
go-mod-tidy:
@echo "go mod tidy"
@cd $(ROOT_DIRECTORY) && \
$(TIMING_CMD) go mod tidy
go-mod-download:
@echo "go mod download"
@cd $(ROOT_DIRECTORY) && \
$(TIMING_CMD) go mod download
go-generate: mockgen
@echo "go generate ./..."
@cd $(ROOT_DIRECTORY) && \
GOWORK=off $(TIMING_CMD) go generate ./...
generate: go-generate format-write imports-write vet
ci-generate: generate
@cd $(ROOT_DIRECTORY) && \
O=`git status -s | grep -E -v '(\.gitmodules|go\.sum)' || true` && \
[ -z "$${O}" ] || (echo "$${O}" && exit 1)
format:
@echo "gofmt -d -e -s"
@cd $(ROOT_DIRECTORY) && \
O=`$(FIND_CMD) -type f -name '*.go' -exec gofmt -d -e -s {} \; 2>&1` && \
[ -z "$${O}" ] || (echo "$${O}" && exit 1)
format-write:
@echo "gofmt -e -s -w"
@cd $(ROOT_DIRECTORY) && \
O=`$(FIND_CMD) -type f -name '*.go' -exec gofmt -e -s -w {} \; 2>&1` && \
[ -z "$${O}" ] || (echo "$${O}" && exit 1)
format-write-changed:
@cd $(ROOT_DIRECTORY) && \
git diff --name-only | grep '\.go$$' | xargs -I{} gofmt -e -s -w {}
imports: goimports
@echo "goimports -d -e -local $(GOIMPORTS_LOCAL)"
@cd $(ROOT_DIRECTORY) && \
O=`$(FIND_CMD) -type f -name '*.go' -exec goimports -d -e -local $(GOIMPORTS_LOCAL) {} \; 2>&1` && \
[ -z "$${O}" ] || (echo "$${O}" && exit 1)
imports-write: goimports
@echo "goimports -e -w -local $(GOIMPORTS_LOCAL)"
@cd $(ROOT_DIRECTORY) && \
O=`$(FIND_CMD) -type f -name '*.go' -exec goimports -e -w -local $(GOIMPORTS_LOCAL) {} \; 2>&1` && \
[ -z "$${O}" ] || (echo "$${O}" && exit 1)
imports-write-changed: goimports
@cd $(ROOT_DIRECTORY) && \
git diff --name-only | grep '\.go$$' | xargs -I{} goimports -e -w -local $(GOIMPORTS_LOCAL) {}
vet: tmp
@echo "go vet ./..."
@cd $(ROOT_DIRECTORY) && \
{ [ -z `go env GOWORK` ] || GOWORK_FLAGS=-mod=readonly; } && \
go vet $${GOWORK_FLAGS:-} ./... > _tmp/govet.out 2>&1 || \
(diff .govetignore _tmp/govet.out && exit 1)
vet-ignore:
@cd $(ROOT_DIRECTORY) && cp _tmp/govet.out .govetignore
build-list:
@cd $(ROOT_DIRECTORY) && $(FIND_MAIN_CMD)
build:
@echo "go build $(BUILD)"
@cd $(ROOT_DIRECTORY) && \
{ [ -z `go env GOWORK` ] || GOWORK_FLAGS=-mod=readonly; } && \
$(TIMING_CMD) $(FIND_MAIN_CMD) | $(TRANSFORM_GO_BUILD_CMD) | while read LINE; do \
$(GO_BUILD_CMD) $${GOWORK_FLAGS:-} -o $${LINE}; \
done
build-watch: CompileDaemon
@cd $(ROOT_DIRECTORY) && BUILD=$(BUILD) CompileDaemon -build-dir='.' -build='make build' -color -directory='.' -exclude-dir='.git' -exclude-dir='.gvm_local' -exclude-dir='.vscode' -exclude='*_test.go' -include='Makefile' -recursive=true
ci-build: build
ci-build-watch: CompileDaemon
@cd $(ROOT_DIRECTORY) && BUILD=$(BUILD) CompileDaemon -build-dir='.' -build='make ci-build' -color -directory='.' -exclude-dir='.git' -exclude-dir='.gvm_local' -exclude-dir='.vscode' -include='Makefile' -recursive=true
test: test-go
ci-test: ci-test-go
test-ginkgo: ginkgo
@echo "ginkgo $(GINKGO_FLAGS) $(TEST)"
@cd $(ROOT_DIRECTORY) && \
{ [ -z `go env GOWORK` ] || GOWORK_FLAGS=-mod=readonly; } && \
. ./env.test.sh && $(TIMING_CMD) ginkgo $(GINKGO_FLAGS) $${GOWORK_FLAGS:-} $(TEST)
test-ginkgo-until-failure: ginkgo
@echo "ginkgo $(GINKGO_FLAGS) -untilItFails $(TEST)"
@cd $(ROOT_DIRECTORY) && \
{ [ -z `go env GOWORK` ] || GOWORK_FLAGS=-mod=readonly; } && \
. ./env.test.sh && ginkgo $(GINKGO_FLAGS) -untilItFails $${GOWORK_FLAGS:-} $(TEST)
test-ginkgo-watch: ginkgo
@echo "ginkgo watch $(GINKGO_FLAGS) $(TEST)"
@cd $(ROOT_DIRECTORY) && \
{ [ -z `go env GOWORK` ] || GOWORK_FLAGS=-mod=readonly; } && \
. ./env.test.sh && ginkgo watch $(GINKGO_FLAGS) $${GOWORK_FLAGS:-} $(TEST)
ci-test-ginkgo: ginkgo
@echo "ginkgo $(GINKGO_FLAGS) $(GINKGO_CI_FLAGS) $(TEST)"
@cd $(ROOT_DIRECTORY) && \
{ [ -z `go env GOWORK` ] || GOWORK_FLAGS=-mod=readonly; } && \
. ./env.test.sh && $(TIMING_CMD) ginkgo $(GINKGO_FLAGS) $(GINKGO_CI_FLAGS) $${GOWORK_FLAGS:-} $(TEST)
ci-test-ginkgo-until-failure: ginkgo
@echo "ginkgo $(GINKGO_FLAGS) $(GINKGO_CI_FLAGS) -untilItFails $(TEST)"
@cd $(ROOT_DIRECTORY) && \
{ [ -z `go env GOWORK` ] || GOWORK_FLAGS=-mod=readonly; } && \
. ./env.test.sh && ginkgo $(GINKGO_FLAGS) $(GINKGO_CI_FLAGS) -untilItFails $${GOWORK_FLAGS:-} $(TEST)
ci-test-ginkgo-watch: ginkgo
@echo "ginkgo watch $(GINKGO_FLAGS) $(GINKGO_CI_WATCH_FLAGS) $(TEST)"
@cd $(ROOT_DIRECTORY) && \
{ [ -z `go env GOWORK` ] || GOWORK_FLAGS=-mod=readonly; } && \
. ./env.test.sh && ginkgo watch $(GINKGO_FLAGS) $(GINKGO_CI_WATCH_FLAGS) $${GOWORK_FLAGS:-} $(TEST)
test-go:
@echo "go test $(GOTEST_FLAGS) $(GOTEST_PKGS)"
@cd $(ROOT_DIRECTORY) && \
{ [ -z `go env GOWORK` ] || GOWORK_FLAGS=-mod=readonly; } && \
. ./env.test.sh && $(TIMING_CMD) go test $(GOTEST_FLAGS) $${GOWORK_FLAGS:-} $(GOTEST_PKGS)
ci-test-go: GOTEST_FLAGS += -count=1 -race -shuffle=on -cover
ci-test-go: GOTEST_PKGS = ./...
ci-test-go: test-go
service-build:
ifdef SERVICE
@$(MAKE) build BUILD=$${SERVICE}
endif
service-start: CompileDaemon tmp
ifdef SERVICE
@cd $(ROOT_DIRECTORY) && BUILD=$(SERVICE) CompileDaemon -build-dir='.' -build='make build' -command='_bin/$(SERVICE)/$(notdir $(SERVICE))' -directory='_tmp' -pattern='^$$' -include='$(subst /,.,$(SERVICE)).restart' -recursive=false -log-prefix=false -graceful-kill=true -graceful-timeout=60
endif
service-debug: CompileDaemon tmp
ifdef SERVICE
ifdef DEBUG_PORT
@cd $(ROOT_DIRECTORY) && BUILD=$(SERVICE) CompileDaemon -build-dir='.' -build='make build' -command='dlv exec --headless --log --listen=:$(DEBUG_PORT) --api-version=2 _bin/$(SERVICE)/$(notdir $(SERVICE))' -directory='_tmp' -pattern='^$$' -include='$(subst /,.,$(SERVICE)).restart' -recursive=false -log-prefix=false -graceful-kill=true -graceful-timeout=60
endif
endif
service-restart: tmp
ifdef SERVICE
@cd $(ROOT_DIRECTORY) && date +'%Y-%m-%dT%H:%M:%S%z' > _tmp/$(subst /,.,$(SERVICE)).restart
endif
service-restart-all:
@cd $(ROOT_DIRECTORY) && for SERVICE in $(shell ls -1 services) ; do $(MAKE) service-restart SERVICE="services/$${SERVICE}"; done
docker-dump:
@echo "DOCKER=$(DOCKER)"
@echo "DOCKER_REPOSITORY=$(DOCKER_REPOSITORY)"
docker:
ifdef DOCKER
@cd $(ROOT_DIRECTORY) && \
for SERVICE in $(SERVICES); do $(MAKE) docker-build DOCKER_SERVICE="$${SERVICE}" TIMESTAMP="$(TIMESTAMP)"; done && \
for SERVICE in $(SERVICES); do $(MAKE) docker-push DOCKER_SERVICE="$${SERVICE}" TIMESTAMP="$(TIMESTAMP)"; done
endif
docker-login:
ifdef DOCKER_REPOSITORY
@echo "$(DOCKER_PASSWORD)" | $(DOCKER_LOGIN_CMD) --username "$(DOCKER_USERNAME)" --password-stdin
endif
docker-build: docker-dump docker-login
ifdef DOCKER_REPOSITORY
@cd $(ROOT_DIRECTORY) && \
$(TIMING_CMD) $(DOCKER_BUILD_CMD) --build-arg=PLUGIN_VISIBILITY=$(PLUGIN_VISIBILITY) --target=platform-${DOCKER_SERVICE} --tag $(DOCKER_REPOSITORY) .
ifdef DOCKER_TRAVIS_BRANCH
@cd $(ROOT_DIRECTORY) && \
$(DOCKER_TAG_CMD) $(DOCKER_REPOSITORY) $(DOCKER_REPOSITORY):$(DOCKER_TRAVIS_BRANCH)-$(TRAVIS_COMMIT)-$(TIMESTAMP) && \
$(DOCKER_TAG_CMD) $(DOCKER_REPOSITORY) $(DOCKER_REPOSITORY):$(DOCKER_TRAVIS_BRANCH)-$(TRAVIS_COMMIT) && \
$(DOCKER_TAG_CMD) $(DOCKER_REPOSITORY) $(DOCKER_REPOSITORY):$(DOCKER_TRAVIS_BRANCH)-latest
endif
endif
docker-push: docker-dump docker-login
ifdef DOCKER_REPOSITORY
ifdef DOCKER_TRAVIS_BRANCH
ifeq ($(DOCKER_TRAVIS_BRANCH),master)
@cd $(ROOT_DIRECTORY) && \
$(DOCKER_PUSH_CMD) $(DOCKER_REPOSITORY)
endif
@cd $(ROOT_DIRECTORY) && \
$(DOCKER_PUSH_CMD) $(DOCKER_REPOSITORY):$(DOCKER_TRAVIS_BRANCH)-$(TRAVIS_COMMIT)-$(TIMESTAMP) && \
$(DOCKER_PUSH_CMD) $(DOCKER_REPOSITORY):$(DOCKER_TRAVIS_BRANCH)-$(TRAVIS_COMMIT) && \
$(DOCKER_PUSH_CMD) $(DOCKER_REPOSITORY):$(DOCKER_TRAVIS_BRANCH)-latest
endif
endif
ci-docker: version-write docker
version-write:
@cd $(ROOT_DIRECTORY) && \
echo "VERSION_BASE=$(VERSION_BASE)" > version.env && \
echo "VERSION_SHORT_COMMIT=$(VERSION_SHORT_COMMIT)" >> version.env && \
echo "VERSION_FULL_COMMIT=$(VERSION_FULL_COMMIT)" >> version.env && \
echo "VERSION_PACKAGE=$(VERSION_PACKAGE)" >> version.env
clean: clean-bin clean-cover clean-debug clean-generate clean-test clean-version
@cd $(ROOT_DIRECTORY) && rm -rf _tmp
clean-bin:
@cd $(ROOT_DIRECTORY) && rm -rf _bin _log
clean-cover:
@cd $(ROOT_DIRECTORY) && $(FIND_CMD) -type f \( -name '*.coverprofile' -o -name 'coverprofile.out' \) -delete
@cd $(ROOT_DIRECTORY) && $(FIND_CMD) -type d -name 'coverage' -empty -delete
clean-debug:
@cd $(ROOT_DIRECTORY) && $(FIND_CMD) -type f \( -name 'debug' -o -name '__debug_bin*' \) -delete
clean-generate:
@cd $(ROOT_DIRECTORY) && $(FIND_CMD) -type f -path '*/gomock_reflect_*/*' -delete
@cd $(ROOT_DIRECTORY) && $(FIND_CMD) -type d -name 'gomock_reflect_*' -delete
clean-test:
@cd $(ROOT_DIRECTORY) && $(FIND_CMD) -type f \( -name '*.test' -o -name '*.report' \) -delete
clean-version:
@cd $(ROOT_DIRECTORY) && rm -rf version.env
clean-all: clean
pre-commit: format imports vet
phony:
@{ rm $(MAKEFILE) && sed -E -n '/^.PHONY: /q;p' > $(MAKEFILE); } < $(MAKEFILE)
@grep -E '^[^ #]+:( |$$)' $(MAKEFILE) | sed -E 's/^([^ #]+):.*/\1/' | sort -u | xargs echo '.PHONY:' | fold -s -w 80 | sed '$$!s/$$/\\/;2,$$s/^/ /g' >> $(MAKEFILE)
.PHONY: bindir build build-list build-watch buildable ci ci-build \
ci-build-watch ci-docker ci-generate ci-init ci-test ci-test-ginkgo \
ci-test-ginkgo-until-failure ci-test-ginkgo-watch ci-test-go clean clean-all \
clean-bin clean-cover clean-debug clean-generate clean-test clean-version \
CompileDaemon default docker docker-build docker-dump docker-login docker-push \
format format-write format-write-changed generate ginkgo go-generate \
go-mod-download go-mod-tidy goimports imports imports-write \
imports-write-changed init mockgen phony plugin-visibility \
plugin-visibility-private plugin-visibility-public plugins-visibility \
plugins-visibility-private plugins-visibility-public pre-commit service-build \
service-debug service-restart service-restart-all service-start test \
test-ginkgo test-ginkgo-until-failure test-ginkgo-watch test-go tmp \
version-write vet vet-ignore