Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
casing small
Browse files Browse the repository at this point in the history
  • Loading branch information
wepudt committed May 25, 2023
1 parent 2ee4857 commit 75968c0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions hack/make/prerequisites.mk
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#renovate depName=sigs.k8s.io/kustomize/kustomize/v5
KUSTOMIZE_VERSION=v5.0.0
kustomize_version=v5.0.0
#renovate depName=sigs.k8s.io/controller-tools/cmd
CONTROLLER_GEN_VERSION=v0.10.0
controller_gen_version=v0.10.0
# renovate depName=github.com/golangci/golangci-lint
GOLANG_CI_CMD_VERSION=v1.52.0
golang_ci_cmd_version=v1.52.0
# renovate depName=github.com/daixiang0/gci
GCI_VERSION=v0.10.0
gci_version=v0.10.0
# renovate depName=golang.org/x/tools
GOLANG_TOOLS_VERSION=v0.9.0
golang_tools_version=v0.9.0

# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
ifeq (,$(shell go env GOBIN))
Expand All @@ -18,18 +18,18 @@ endif

## Installs 'kustomize' if it is missing
prerequisites/kustomize:
hack/build/command.sh kustomize "sigs.k8s.io/kustomize/kustomize/v5@$(KUSTOMIZE_VERSION)"
hack/build/command.sh kustomize "sigs.k8s.io/kustomize/kustomize/v5@$(kustomize_version)"
KUSTOMIZE=$(shell hack/build/command.sh kustomize)

## Install 'controller-gen' if it is missing
prerequisites/controller-gen:
hack/build/command.sh controller-gen "sigs.k8s.io/controller-tools/cmd/controller-gen@$(CONTROLLER_GEN_VERSION)"
hack/build/command.sh controller-gen "sigs.k8s.io/controller-tools/cmd/controller-gen@$(controller_gen_version)"
CONTROLLER_GEN=$(shell hack/build/command.sh controller-gen)

prerequisites/setup-pre-commit:
go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(GOLANG_CI_CMD_VERSION)
go install github.com/daixiang0/gci@$(GCI_VERSION)
go install golang.org/x/tools/cmd/goimports@$(GOLANG_TOOLS_VERSION)
go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(golang_ci_cmd_version)
go install github.com/daixiang0/gci@v$(gci_version)
go install golang.org/x/tools/cmd/goimports@$(golang_tools_version)
cp ./.github/pre-commit ./.git/hooks/pre-commit
chmod +x ./.git/hooks/pre-commit

Expand Down

0 comments on commit 75968c0

Please sign in to comment.