Skip to content

Commit

Permalink
tests/tools: rebuild tools when we change versions
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Luap99 committed Nov 7, 2024
1 parent 3cf2ec2 commit 2cba662
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ GO_BUILD=$(GO) build

BUILDDIR := build

SOURCES = go.mod go.sum

all: $(BUILDDIR)

.PHONY: vendor
Expand All @@ -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

0 comments on commit 2cba662

Please sign in to comment.