mirror of
https://github.com/containers/podman.git
synced 2026-07-21 04:31:57 -04:00
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 0.0.6 to 0.0.7. - [Release notes](https://github.com/spf13/cobra/releases) - [Commits](https://github.com/spf13/cobra/compare/v0.0.6...0.0.7) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
37 lines
873 B
Makefile
37 lines
873 B
Makefile
BIN="./bin"
|
|
SRC=$(shell find . -name "*.go")
|
|
|
|
ifeq (, $(shell which richgo))
|
|
$(warning "could not find richgo in $(PATH), run: go get github.com/kyoh86/richgo")
|
|
endif
|
|
|
|
.PHONY: fmt vet test cobra_generator install_deps clean
|
|
|
|
default: all
|
|
|
|
all: fmt vet test cobra_generator
|
|
|
|
fmt:
|
|
$(info ******************** checking formatting ********************)
|
|
@test -z $(shell gofmt -l $(SRC)) || (gofmt -d $(SRC); exit 1)
|
|
|
|
test: install_deps vet
|
|
$(info ******************** running tests ********************)
|
|
richgo test -v ./...
|
|
|
|
cobra_generator: install_deps
|
|
$(info ******************** building generator ********************)
|
|
mkdir -p $(BIN)
|
|
make -C cobra all
|
|
|
|
install_deps:
|
|
$(info ******************** downloading dependencies ********************)
|
|
go get -v ./...
|
|
|
|
vet:
|
|
$(info ******************** vetting ********************)
|
|
go vet ./...
|
|
|
|
clean:
|
|
rm -rf $(BIN)
|