From 2cba66285e7e9dfb43c6a320cd4b2c177210f1e0 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Thu, 7 Nov 2024 11:04:16 +0100 Subject: [PATCH] tests/tools: rebuild tools when we change versions As I used this locally and the binaires already existed make did not rebuild. While we could list all go files here nobody should be modifying files under vendor/ directly so just checking go.mod/sum seems easiest. Signed-off-by: Paul Holzinger --- tests/tools/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/tools/Makefile b/tests/tools/Makefile index 75351aac29d..0d0fdbe29d9 100644 --- a/tests/tools/Makefile +++ b/tests/tools/Makefile @@ -3,6 +3,8 @@ GO_BUILD=$(GO) build BUILDDIR := build +SOURCES = go.mod go.sum + all: $(BUILDDIR) .PHONY: vendor @@ -28,8 +30,8 @@ $(BUILDDIR): \ $(BUILDDIR)/go-md2man \ $(BUILDDIR)/golangci-lint -$(BUILDDIR)/go-md2man: +$(BUILDDIR)/go-md2man: $(SOURCES) $(GO_BUILD) -o $@ ./vendor/github.com/cpuguy83/go-md2man/v2 -$(BUILDDIR)/golangci-lint: +$(BUILDDIR)/golangci-lint: $(SOURCES) $(GO_BUILD) -o $@ ./vendor/github.com/golangci/golangci-lint/cmd/golangci-lint