Files
podman/test/tools/Makefile
Kir Kolyshkin f45b4c506a ci: replace git-validation with a small shell script
Since commit def70012b9 git-validation is only used to check if the
commit subject is less than 90 characters.

Drop the vendored git-validation Go tool and the .gitvalidation make
target in favor of hack/commit-subject-check.sh.

This removes a Go build dependency and a vendored tree from
test/tools/ while keeping the same CI and local behavior.

Note the now-removed GIT_CHECK_EXCLUDE was not used by gitvalidation
since commit def70012b9 because it was not checking any specific
files, just the commit subject lengths.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-05-22 11:43:59 -07:00

31 lines
542 B
Makefile

GO := go
GO_BUILD=$(GO) build
BUILDDIR := build
SOURCES := $(shell find . -name '*.go')
all: $(BUILDDIR)
.PHONY: vendor
vendor:
$(GO) mod tidy
$(GO) mod vendor
$(GO) mod verify
$(GO) mod edit -toolchain none
.PHONY: clean
clean:
rm -rf $(BUILDDIR)
.PHONY: $(BUILDDIR)
$(BUILDDIR): \
$(BUILDDIR)/go-md2man \
$(BUILDDIR)/swagger
$(BUILDDIR)/go-md2man: $(SOURCES)
$(GO_BUILD) -o $@ ./vendor/github.com/cpuguy83/go-md2man/v2
$(BUILDDIR)/swagger: $(SOURCES)
$(GO_BUILD) -o $@ ./vendor/github.com/go-swagger/go-swagger/cmd/swagger