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 <janderson@ciq.com>
This commit is contained in:
5
Tools.mk
5
Tools.mk
@@ -3,11 +3,13 @@ TOOLS_BIN := $(TOOLS_DIR)/bin
|
|||||||
|
|
||||||
GO_TOOLS_BIN := $(addprefix $(TOOLS_BIN)/, $(notdir $(GO_TOOLS)))
|
GO_TOOLS_BIN := $(addprefix $(TOOLS_BIN)/, $(notdir $(GO_TOOLS)))
|
||||||
GO_TOOLS_VENDOR := $(addprefix vendor/, $(GO_TOOLS))
|
GO_TOOLS_VENDOR := $(addprefix vendor/, $(GO_TOOLS))
|
||||||
|
|
||||||
GOLANGCI_LINT := $(TOOLS_BIN)/golangci-lint
|
GOLANGCI_LINT := $(TOOLS_BIN)/golangci-lint
|
||||||
GOLANGCI_LINT_VERSION := v1.53.2
|
GOLANGCI_LINT_VERSION := v1.53.2
|
||||||
|
|
||||||
|
PROTOC := $(TOOLS_BIN)/protoc
|
||||||
PROTOC_GEN_GO := $(TOOLS_BIN)/protoc-gen-go
|
PROTOC_GEN_GO := $(TOOLS_BIN)/protoc-gen-go
|
||||||
PROTOC_GEN_GO_GRPC := $(TOOLS_BIN)/protoc-gen-go-grpc
|
PROTOC_GEN_GO_GRPC := $(TOOLS_BIN)/protoc-gen-go-grpc
|
||||||
PROTOC := $(TOOLS_BIN)/protoc
|
|
||||||
PROTOC_GEN_GRPC_GATEWAY := $(TOOLS_BIN)/protoc-gen-grpc-gateway
|
PROTOC_GEN_GRPC_GATEWAY := $(TOOLS_BIN)/protoc-gen-grpc-gateway
|
||||||
|
|
||||||
ifeq ($(ARCH),aarch64)
|
ifeq ($(ARCH),aarch64)
|
||||||
@@ -32,6 +34,7 @@ $(GOLANGCI_LINT):
|
|||||||
|
|
||||||
$(PROTOC): $(TOOLS_DIR)
|
$(PROTOC): $(TOOLS_DIR)
|
||||||
cd $(TOOLS_DIR) && curl -LO $(PROTOC_URL) && unzip -o $(notdir $(PROTOC_URL))
|
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):
|
$(PROTOC_GEN_GRPC_GATEWAY):
|
||||||
curl -L $(PROTOC_GEN_GRPC_GATEWAY_URL) -o $(PROTOC_GEN_GRPC_GATEWAY)
|
curl -L $(PROTOC_GEN_GRPC_GATEWAY_URL) -o $(PROTOC_GEN_GRPC_GATEWAY)
|
||||||
|
|||||||
Reference in New Issue
Block a user