Skip to content

Commit ba1a810

Browse files
install kiss
1 parent fe80619 commit ba1a810

File tree

7 files changed

+63
-63
lines changed

7 files changed

+63
-63
lines changed

docs/book/src/cronjob-tutorial/testdata/project/Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -227,20 +227,20 @@ $(GOLANGCI_LINT): $(LOCALBIN)
227227

228228
# To lint Kubernetes API definitions.
229229
# More info: https://github.com/kubernetes-sigs/kube-api-linter
230+
# To lint Kubernetes API definitions using a GolangCI-Lint custom plugin.
230231
KUBE_API_LINTER_PLUGIN := $(LOCALBIN)/kube-api-linter.so
231-
KUBE_API_LINTER_BUILD_DIR := ./hack/kube-api-linter
232+
KUBE_API_LINTER_BUILD_DIR := hack/kube-api-linter
232233

233234
.PHONY: kube-api-linter
234-
kube-api-linter: $(KUBE_API_LINTER_PLUGIN) ## Build the kube-api-linter plugin
235-
$(KUBE_API_LINTER_PLUGIN): $(KUBE_API_LINTER_BUILD_DIR)/go.mod
236-
cd $(KUBE_API_LINTER_BUILD_DIR) && \
237-
go build -buildmode=plugin -o "$(abspath $(KUBE_API_LINTER_PLUGIN))" sigs.k8s.io/kube-api-linter/pkg/plugin
238-
$(KUBE_API_LINTER_BUILD_DIR)/go.mod:
239-
@echo "Setting up local module for kube-api-linter plugin..."
235+
kube-api-linter: ## Build kube-api-linter plugin (.so)
236+
@echo "Building kube-api-linter plugin..."
237+
rm -rf $(KUBE_API_LINTER_BUILD_DIR)
240238
mkdir -p $(KUBE_API_LINTER_BUILD_DIR)
241239
cd $(KUBE_API_LINTER_BUILD_DIR) && \
242-
go mod init local-kube-api-linter && \
243-
go get sigs.k8s.io/kube-api-linter@latest
240+
go mod init tmp-kube-api-linter && \
241+
go get sigs.k8s.io/kube-api-linter@latest && \
242+
go build -buildmode=plugin -o "$(CURDIR)/$(KUBE_API_LINTER_PLUGIN)" sigs.k8s.io/kube-api-linter/pkg/plugin
243+
244244

245245
# go-install-tool will 'go install' any package with custom target and name of binary, if it doesn't exist
246246
# $1 - target path with name of binary

docs/book/src/getting-started/testdata/project/Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -223,20 +223,20 @@ $(GOLANGCI_LINT): $(LOCALBIN)
223223

224224
# To lint Kubernetes API definitions.
225225
# More info: https://github.com/kubernetes-sigs/kube-api-linter
226+
# To lint Kubernetes API definitions using a GolangCI-Lint custom plugin.
226227
KUBE_API_LINTER_PLUGIN := $(LOCALBIN)/kube-api-linter.so
227-
KUBE_API_LINTER_BUILD_DIR := ./hack/kube-api-linter
228+
KUBE_API_LINTER_BUILD_DIR := hack/kube-api-linter
228229

229230
.PHONY: kube-api-linter
230-
kube-api-linter: $(KUBE_API_LINTER_PLUGIN) ## Build the kube-api-linter plugin
231-
$(KUBE_API_LINTER_PLUGIN): $(KUBE_API_LINTER_BUILD_DIR)/go.mod
232-
cd $(KUBE_API_LINTER_BUILD_DIR) && \
233-
go build -buildmode=plugin -o "$(abspath $(KUBE_API_LINTER_PLUGIN))" sigs.k8s.io/kube-api-linter/pkg/plugin
234-
$(KUBE_API_LINTER_BUILD_DIR)/go.mod:
235-
@echo "Setting up local module for kube-api-linter plugin..."
231+
kube-api-linter: ## Build kube-api-linter plugin (.so)
232+
@echo "Building kube-api-linter plugin..."
233+
rm -rf $(KUBE_API_LINTER_BUILD_DIR)
236234
mkdir -p $(KUBE_API_LINTER_BUILD_DIR)
237235
cd $(KUBE_API_LINTER_BUILD_DIR) && \
238-
go mod init local-kube-api-linter && \
239-
go get sigs.k8s.io/kube-api-linter@latest
236+
go mod init tmp-kube-api-linter && \
237+
go get sigs.k8s.io/kube-api-linter@latest && \
238+
go build -buildmode=plugin -o "$(CURDIR)/$(KUBE_API_LINTER_PLUGIN)" sigs.k8s.io/kube-api-linter/pkg/plugin
239+
240240

241241
# go-install-tool will 'go install' any package with custom target and name of binary, if it doesn't exist
242242
# $1 - target path with name of binary

docs/book/src/multiversion-tutorial/testdata/project/Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -227,20 +227,20 @@ $(GOLANGCI_LINT): $(LOCALBIN)
227227

228228
# To lint Kubernetes API definitions.
229229
# More info: https://github.com/kubernetes-sigs/kube-api-linter
230+
# To lint Kubernetes API definitions using a GolangCI-Lint custom plugin.
230231
KUBE_API_LINTER_PLUGIN := $(LOCALBIN)/kube-api-linter.so
231-
KUBE_API_LINTER_BUILD_DIR := ./hack/kube-api-linter
232+
KUBE_API_LINTER_BUILD_DIR := hack/kube-api-linter
232233

233234
.PHONY: kube-api-linter
234-
kube-api-linter: $(KUBE_API_LINTER_PLUGIN) ## Build the kube-api-linter plugin
235-
$(KUBE_API_LINTER_PLUGIN): $(KUBE_API_LINTER_BUILD_DIR)/go.mod
236-
cd $(KUBE_API_LINTER_BUILD_DIR) && \
237-
go build -buildmode=plugin -o "$(abspath $(KUBE_API_LINTER_PLUGIN))" sigs.k8s.io/kube-api-linter/pkg/plugin
238-
$(KUBE_API_LINTER_BUILD_DIR)/go.mod:
239-
@echo "Setting up local module for kube-api-linter plugin..."
235+
kube-api-linter: ## Build kube-api-linter plugin (.so)
236+
@echo "Building kube-api-linter plugin..."
237+
rm -rf $(KUBE_API_LINTER_BUILD_DIR)
240238
mkdir -p $(KUBE_API_LINTER_BUILD_DIR)
241239
cd $(KUBE_API_LINTER_BUILD_DIR) && \
242-
go mod init local-kube-api-linter && \
243-
go get sigs.k8s.io/kube-api-linter@latest
240+
go mod init tmp-kube-api-linter && \
241+
go get sigs.k8s.io/kube-api-linter@latest && \
242+
go build -buildmode=plugin -o "$(CURDIR)/$(KUBE_API_LINTER_PLUGIN)" sigs.k8s.io/kube-api-linter/pkg/plugin
243+
244244

245245
# go-install-tool will 'go install' any package with custom target and name of binary, if it doesn't exist
246246
# $1 - target path with name of binary

pkg/plugins/golang/v4/scaffolds/internal/templates/makefile.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -302,20 +302,20 @@ $(GOLANGCI_LINT): $(LOCALBIN)
302302
303303
# To lint Kubernetes API definitions.
304304
# More info: https://github.com/kubernetes-sigs/kube-api-linter
305+
# To lint Kubernetes API definitions using a GolangCI-Lint custom plugin.
305306
KUBE_API_LINTER_PLUGIN := $(LOCALBIN)/kube-api-linter.so
306-
KUBE_API_LINTER_BUILD_DIR := ./hack/kube-api-linter
307+
KUBE_API_LINTER_BUILD_DIR := hack/kube-api-linter
307308
308309
.PHONY: kube-api-linter
309-
kube-api-linter: $(KUBE_API_LINTER_PLUGIN) ## Build the kube-api-linter plugin
310-
$(KUBE_API_LINTER_PLUGIN): $(KUBE_API_LINTER_BUILD_DIR)/go.mod
311-
cd $(KUBE_API_LINTER_BUILD_DIR) && \
312-
go build -buildmode=plugin -o "$(abspath $(KUBE_API_LINTER_PLUGIN))" sigs.k8s.io/kube-api-linter/pkg/plugin
313-
$(KUBE_API_LINTER_BUILD_DIR)/go.mod:
314-
@echo "Setting up local module for kube-api-linter plugin..."
310+
kube-api-linter: ## Build kube-api-linter plugin (.so)
311+
@echo "Building kube-api-linter plugin..."
312+
rm -rf $(KUBE_API_LINTER_BUILD_DIR)
315313
mkdir -p $(KUBE_API_LINTER_BUILD_DIR)
316314
cd $(KUBE_API_LINTER_BUILD_DIR) && \
317-
go mod init local-kube-api-linter && \
318-
go get sigs.k8s.io/kube-api-linter@latest
315+
go mod init tmp-kube-api-linter && \
316+
go get sigs.k8s.io/kube-api-linter@latest && \
317+
go build -buildmode=plugin -o "$(CURDIR)/$(KUBE_API_LINTER_PLUGIN)" sigs.k8s.io/kube-api-linter/pkg/plugin
318+
319319
320320
# go-install-tool will 'go install' any package with custom target and name of binary, if it doesn't exist
321321
# $1 - target path with name of binary

testdata/project-v4-multigroup/Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -223,20 +223,20 @@ $(GOLANGCI_LINT): $(LOCALBIN)
223223

224224
# To lint Kubernetes API definitions.
225225
# More info: https://github.com/kubernetes-sigs/kube-api-linter
226+
# To lint Kubernetes API definitions using a GolangCI-Lint custom plugin.
226227
KUBE_API_LINTER_PLUGIN := $(LOCALBIN)/kube-api-linter.so
227-
KUBE_API_LINTER_BUILD_DIR := ./hack/kube-api-linter
228+
KUBE_API_LINTER_BUILD_DIR := hack/kube-api-linter
228229

229230
.PHONY: kube-api-linter
230-
kube-api-linter: $(KUBE_API_LINTER_PLUGIN) ## Build the kube-api-linter plugin
231-
$(KUBE_API_LINTER_PLUGIN): $(KUBE_API_LINTER_BUILD_DIR)/go.mod
232-
cd $(KUBE_API_LINTER_BUILD_DIR) && \
233-
go build -buildmode=plugin -o "$(abspath $(KUBE_API_LINTER_PLUGIN))" sigs.k8s.io/kube-api-linter/pkg/plugin
234-
$(KUBE_API_LINTER_BUILD_DIR)/go.mod:
235-
@echo "Setting up local module for kube-api-linter plugin..."
231+
kube-api-linter: ## Build kube-api-linter plugin (.so)
232+
@echo "Building kube-api-linter plugin..."
233+
rm -rf $(KUBE_API_LINTER_BUILD_DIR)
236234
mkdir -p $(KUBE_API_LINTER_BUILD_DIR)
237235
cd $(KUBE_API_LINTER_BUILD_DIR) && \
238-
go mod init local-kube-api-linter && \
239-
go get sigs.k8s.io/kube-api-linter@latest
236+
go mod init tmp-kube-api-linter && \
237+
go get sigs.k8s.io/kube-api-linter@latest && \
238+
go build -buildmode=plugin -o "$(CURDIR)/$(KUBE_API_LINTER_PLUGIN)" sigs.k8s.io/kube-api-linter/pkg/plugin
239+
240240

241241
# go-install-tool will 'go install' any package with custom target and name of binary, if it doesn't exist
242242
# $1 - target path with name of binary

testdata/project-v4-with-plugins/Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -223,20 +223,20 @@ $(GOLANGCI_LINT): $(LOCALBIN)
223223

224224
# To lint Kubernetes API definitions.
225225
# More info: https://github.com/kubernetes-sigs/kube-api-linter
226+
# To lint Kubernetes API definitions using a GolangCI-Lint custom plugin.
226227
KUBE_API_LINTER_PLUGIN := $(LOCALBIN)/kube-api-linter.so
227-
KUBE_API_LINTER_BUILD_DIR := ./hack/kube-api-linter
228+
KUBE_API_LINTER_BUILD_DIR := hack/kube-api-linter
228229

229230
.PHONY: kube-api-linter
230-
kube-api-linter: $(KUBE_API_LINTER_PLUGIN) ## Build the kube-api-linter plugin
231-
$(KUBE_API_LINTER_PLUGIN): $(KUBE_API_LINTER_BUILD_DIR)/go.mod
232-
cd $(KUBE_API_LINTER_BUILD_DIR) && \
233-
go build -buildmode=plugin -o "$(abspath $(KUBE_API_LINTER_PLUGIN))" sigs.k8s.io/kube-api-linter/pkg/plugin
234-
$(KUBE_API_LINTER_BUILD_DIR)/go.mod:
235-
@echo "Setting up local module for kube-api-linter plugin..."
231+
kube-api-linter: ## Build kube-api-linter plugin (.so)
232+
@echo "Building kube-api-linter plugin..."
233+
rm -rf $(KUBE_API_LINTER_BUILD_DIR)
236234
mkdir -p $(KUBE_API_LINTER_BUILD_DIR)
237235
cd $(KUBE_API_LINTER_BUILD_DIR) && \
238-
go mod init local-kube-api-linter && \
239-
go get sigs.k8s.io/kube-api-linter@latest
236+
go mod init tmp-kube-api-linter && \
237+
go get sigs.k8s.io/kube-api-linter@latest && \
238+
go build -buildmode=plugin -o "$(CURDIR)/$(KUBE_API_LINTER_PLUGIN)" sigs.k8s.io/kube-api-linter/pkg/plugin
239+
240240

241241
# go-install-tool will 'go install' any package with custom target and name of binary, if it doesn't exist
242242
# $1 - target path with name of binary

testdata/project-v4/Makefile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -223,20 +223,20 @@ $(GOLANGCI_LINT): $(LOCALBIN)
223223

224224
# To lint Kubernetes API definitions.
225225
# More info: https://github.com/kubernetes-sigs/kube-api-linter
226+
# To lint Kubernetes API definitions using a GolangCI-Lint custom plugin.
226227
KUBE_API_LINTER_PLUGIN := $(LOCALBIN)/kube-api-linter.so
227-
KUBE_API_LINTER_BUILD_DIR := ./hack/kube-api-linter
228+
KUBE_API_LINTER_BUILD_DIR := hack/kube-api-linter
228229

229230
.PHONY: kube-api-linter
230-
kube-api-linter: $(KUBE_API_LINTER_PLUGIN) ## Build the kube-api-linter plugin
231-
$(KUBE_API_LINTER_PLUGIN): $(KUBE_API_LINTER_BUILD_DIR)/go.mod
232-
cd $(KUBE_API_LINTER_BUILD_DIR) && \
233-
go build -buildmode=plugin -o "$(abspath $(KUBE_API_LINTER_PLUGIN))" sigs.k8s.io/kube-api-linter/pkg/plugin
234-
$(KUBE_API_LINTER_BUILD_DIR)/go.mod:
235-
@echo "Setting up local module for kube-api-linter plugin..."
231+
kube-api-linter: ## Build kube-api-linter plugin (.so)
232+
@echo "Building kube-api-linter plugin..."
233+
rm -rf $(KUBE_API_LINTER_BUILD_DIR)
236234
mkdir -p $(KUBE_API_LINTER_BUILD_DIR)
237235
cd $(KUBE_API_LINTER_BUILD_DIR) && \
238-
go mod init local-kube-api-linter && \
239-
go get sigs.k8s.io/kube-api-linter@latest
236+
go mod init tmp-kube-api-linter && \
237+
go get sigs.k8s.io/kube-api-linter@latest && \
238+
go build -buildmode=plugin -o "$(CURDIR)/$(KUBE_API_LINTER_PLUGIN)" sigs.k8s.io/kube-api-linter/pkg/plugin
239+
240240

241241
# go-install-tool will 'go install' any package with custom target and name of binary, if it doesn't exist
242242
# $1 - target path with name of binary

0 commit comments

Comments
 (0)