diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-01-15 01:37:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-15 01:37:19 +0100 |
commit | 12aa9caf97bdcb6dc71a8c94c4875f9e0e87022a (patch) | |
tree | f0dc54d0ff39dc1f5ad56ecf8619f47ea7f22771 /vendor/github.com/pkg/errors/Makefile | |
parent | 0aa9dba3e1009dbbdf59d47d9370db0de4679730 (diff) | |
parent | f5bda9994d5e6cb1ee42ade5e7786059feedf633 (diff) | |
download | podman-12aa9caf97bdcb6dc71a8c94c4875f9e0e87022a.tar.gz podman-12aa9caf97bdcb6dc71a8c94c4875f9e0e87022a.tar.bz2 podman-12aa9caf97bdcb6dc71a8c94c4875f9e0e87022a.zip |
Merge pull request #4866 from TomSweeneyRedHat/dev/tsweeney/buildah1.13.1
Bump to Buildah v1.13.1
Diffstat (limited to 'vendor/github.com/pkg/errors/Makefile')
-rw-r--r-- | vendor/github.com/pkg/errors/Makefile | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/vendor/github.com/pkg/errors/Makefile b/vendor/github.com/pkg/errors/Makefile new file mode 100644 index 000000000..ce9d7cded --- /dev/null +++ b/vendor/github.com/pkg/errors/Makefile @@ -0,0 +1,44 @@ +PKGS := github.com/pkg/errors +SRCDIRS := $(shell go list -f '{{.Dir}}' $(PKGS)) +GO := go + +check: test vet gofmt misspell unconvert staticcheck ineffassign unparam + +test: + $(GO) test $(PKGS) + +vet: | test + $(GO) vet $(PKGS) + +staticcheck: + $(GO) get honnef.co/go/tools/cmd/staticcheck + staticcheck -checks all $(PKGS) + +misspell: + $(GO) get github.com/client9/misspell/cmd/misspell + misspell \ + -locale GB \ + -error \ + *.md *.go + +unconvert: + $(GO) get github.com/mdempsky/unconvert + unconvert -v $(PKGS) + +ineffassign: + $(GO) get github.com/gordonklaus/ineffassign + find $(SRCDIRS) -name '*.go' | xargs ineffassign + +pedantic: check errcheck + +unparam: + $(GO) get mvdan.cc/unparam + unparam ./... + +errcheck: + $(GO) get github.com/kisielk/errcheck + errcheck $(PKGS) + +gofmt: + @echo Checking code is gofmted + @test -z "$(shell gofmt -s -l -d -e $(SRCDIRS) | tee /dev/stderr)" |