From f6ea3a21a8985ce3c8a1e77a6d494937ed8e158d Mon Sep 17 00:00:00 2001 From: Jonathon Anderson Date: Fri, 1 Sep 2023 02:51:43 -0600 Subject: [PATCH] Update protoc metadata after extraction `unzip` preserves the mtime from the zipfile by default. Touching the file during `make` ensures that `make` can track when the file was fetched. Signed-off-by: Jonathon Anderson --- Tools.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tools.mk b/Tools.mk index b6bfeb55..02cb091f 100644 --- a/Tools.mk +++ b/Tools.mk @@ -3,11 +3,13 @@ TOOLS_BIN := $(TOOLS_DIR)/bin GO_TOOLS_BIN := $(addprefix $(TOOLS_BIN)/, $(notdir $(GO_TOOLS))) GO_TOOLS_VENDOR := $(addprefix vendor/, $(GO_TOOLS)) + GOLANGCI_LINT := $(TOOLS_BIN)/golangci-lint GOLANGCI_LINT_VERSION := v1.53.2 + +PROTOC := $(TOOLS_BIN)/protoc PROTOC_GEN_GO := $(TOOLS_BIN)/protoc-gen-go PROTOC_GEN_GO_GRPC := $(TOOLS_BIN)/protoc-gen-go-grpc -PROTOC := $(TOOLS_BIN)/protoc PROTOC_GEN_GRPC_GATEWAY := $(TOOLS_BIN)/protoc-gen-grpc-gateway ifeq ($(ARCH),aarch64) @@ -32,6 +34,7 @@ $(GOLANGCI_LINT): $(PROTOC): $(TOOLS_DIR) cd $(TOOLS_DIR) && curl -LO $(PROTOC_URL) && unzip -o $(notdir $(PROTOC_URL)) + touch --no-create $(PROTOC) # by default the timestamp is preserved from the archive $(PROTOC_GEN_GRPC_GATEWAY): curl -L $(PROTOC_GEN_GRPC_GATEWAY_URL) -o $(PROTOC_GEN_GRPC_GATEWAY)