mirror of
https://github.com/containers/podman.git
synced 2026-06-02 13:03:43 -04:00
Since commitdef70012b9git-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 commitdef70012b9because it was not checking any specific files, just the commit subject lengths. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
31 lines
542 B
Makefile
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
|