bump containers/image to v5.0.0, buildah to v1.11.4

Move to containers/image v5 and containers/buildah to v1.11.4.

Replace an equality check with a type assertion when checking for a
docker.ErrUnauthorizedForCredentials in `podman login`.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
This commit is contained in:
Nalin Dahyabhai
2019-10-24 10:37:22 -04:00
parent 59582c55b7
commit a4a70b4506
333 changed files with 10226 additions and 3551 deletions

View File

@@ -1,34 +1,27 @@
.PHONY: \
all \
staticcheck \
lint \
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
lint:
cd /tmp && GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint@latest
golangci-lint run
fmt:
GO111MODULE=off go get mvdan.cc/gofumpt
gofumpt -s -w .
testdeps:
go mod download
pretest: staticcheck fmtcheck
pretest: lint
gotest:
go test -race -vet all ./...
test: testdeps pretest gotest
test: pretest gotest
integration:
go test -tags docker_integration -run TestIntegration -v