mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
Use golangci-lint fmt for pkg/bindings
golangci-lint v2 introduced a new command, fmt, which runs configured formatters (see formatters in .golangci.yml). Use this for generated files. Drop separate goimports binary. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
6
Makefile
6
Makefile
@ -478,7 +478,7 @@ podman-testing: bin/podman-testing
|
||||
###
|
||||
|
||||
.PHONY: generate-bindings
|
||||
generate-bindings:
|
||||
generate-bindings: .install.golangci-lint
|
||||
ifneq ($(GOOS),darwin)
|
||||
$(GOCMD) generate ./pkg/bindings/... ;
|
||||
endif
|
||||
@ -1023,10 +1023,6 @@ endif
|
||||
install.tools: .install.golangci-lint ## Install needed tools
|
||||
$(MAKE) -C test/tools
|
||||
|
||||
.PHONY: .install.goimports
|
||||
.install.goimports:
|
||||
$(MAKE) -C test/tools build/goimports
|
||||
|
||||
.PHONY: .install.ginkgo
|
||||
.install.ginkgo:
|
||||
$(GO) build -o $(GINKGO) ./vendor/github.com/onsi/ginkgo/v2/ginkgo
|
||||
|
Reference in New Issue
Block a user