mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-10-27 00:07:38 +00:00
This requires updating all import paths throughout, and a matching buildah update to interoperate. I can't figure out the reason for go.mod tracking github.com/containers/image v3.0.2+incompatible // indirect ((go mod graph) lists it as a direct dependency of libpod, but (go list -json -m all) lists it as an indirect dependency), but at least looking at the vendor subdirectory, it doesn't seem to be actually used in the built binaries. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
34 lines
551 B
Makefile
34 lines
551 B
Makefile
.PHONY: \
|
|
all \
|
|
staticcheck \
|
|
fmt \
|
|
fmtcheck \
|
|
pretest \
|
|
test \
|
|
integration
|
|
|
|
all: test
|
|
|
|
staticcheck:
|
|
GO111MODULE=off go get honnef.co/go/tools/cmd/staticcheck
|
|
staticcheck ./...
|
|
|
|
fmtcheck:
|
|
if [ -z "$${SKIP_FMT_CHECK}" ]; then [ -z "$$(gofumpt -s -d . | tee /dev/stderr)" ]; fi
|
|
|
|
fmt:
|
|
GO111MODULE=off go get mvdan.cc/gofumpt
|
|
gofumpt -s -w .
|
|
|
|
testdeps:
|
|
go mod download
|
|
|
|
pretest: staticcheck fmtcheck
|
|
|
|
gotest:
|
|
go test -race -vet all ./...
|
|
|
|
test: testdeps pretest gotest
|
|
|
|
integration:
|
|
go test -tags docker_integration -run TestIntegration -v
|