From e875745ee01a3197528e1c482d417e7d3dc6245b Mon Sep 17 00:00:00 2001 From: Mark Sagi-Kazar Date: Sun, 14 Nov 2021 14:46:33 +0100 Subject: [PATCH] chore: add kind to the tooling Signed-off-by: Mark Sagi-Kazar --- Makefile | 8 +++++++- flake.nix | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ff5e0463..b92aee98 100644 --- a/Makefile +++ b/Makefile @@ -120,8 +120,9 @@ GOTESTSUM_VERSION ?= 1.7.0 PROTOC_VERSION = 3.15.6 PROTOC_GEN_GO_VERSION = 1.26.0 PROTOC_GEN_GO_GRPC_VERSION = 1.1.0 +KIND_VERSION = 0.11.1 -deps: bin/gotestsum bin/golangci-lint bin/protoc bin/protoc-gen-go bin/protoc-gen-go-grpc +deps: bin/gotestsum bin/golangci-lint bin/protoc bin/protoc-gen-go bin/protoc-gen-go-grpc bin/kind bin/gotestsum: @mkdir -p bin @@ -152,3 +153,8 @@ bin/protoc-gen-go-grpc: @mkdir -p bin curl -L https://github.com/grpc/grpc-go/releases/download/cmd/protoc-gen-go-grpc/v${PROTOC_GEN_GO_GRPC_VERSION}/protoc-gen-go-grpc.v${PROTOC_GEN_GO_GRPC_VERSION}.$(shell uname | tr A-Z a-z).amd64.tar.gz | tar -zOxf - ./protoc-gen-go-grpc > ./bin/protoc-gen-go-grpc @chmod +x ./bin/protoc-gen-go-grpc + +bin/kind: + @mkdir -p bin + curl -L https://github.com/kubernetes-sigs/kind/releases/download/v${KIND_VERSION}/kind-$(shell uname | tr A-Z a-z)-amd64 > ./bin/kind + @chmod +x ./bin/kind diff --git a/flake.nix b/flake.nix index 246df451..8f444d5e 100644 --- a/flake.nix +++ b/flake.nix @@ -18,6 +18,7 @@ protobuf protoc-gen-go protoc-gen-go-grpc + kind ]; in { devShell = pkgs.mkShell { buildInputs = devDeps; }; });