From 639661bc7ca892330711a6916e41279c0b6bf607 Mon Sep 17 00:00:00 2001 From: Matteo Mortari Date: Wed, 21 Aug 2024 17:31:56 +0200 Subject: [PATCH] chore: remove go from bin (#288) Co-authored-by: Isabella do Amaral --- Makefile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 614811125..0e6c6e38e 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST))) PROJECT_PATH := $(patsubst %/,%,$(dir $(MKFILE_PATH))) PROJECT_BIN := $(PROJECT_PATH)/bin -GO := $(PROJECT_BIN)/go1.21.9 +GO ?= "$(shell which go)" # add tools bin directory PATH := $(PROJECT_BIN):$(PATH) @@ -108,10 +108,6 @@ clean: clean/odh: rm -Rf ./model-registry -bin/go: - GOBIN=$(PROJECT_BIN) go install golang.org/dl/go1.21.9@latest - $(PROJECT_BIN)/go1.21.9 download - bin/protoc: ./scripts/install_protoc.sh @@ -155,7 +151,7 @@ clean/deps: rm -Rf bin/* .PHONY: deps -deps: bin/go bin/protoc bin/go-enum bin/protoc-gen-go bin/protoc-gen-go-grpc bin/golangci-lint bin/goverter bin/openapi-generator-cli +deps: bin/protoc bin/go-enum bin/protoc-gen-go bin/protoc-gen-go-grpc bin/golangci-lint bin/goverter bin/openapi-generator-cli .PHONY: vendor vendor: