chore: add make style target for gofmt formatting
This commit is contained in:
parent
d6aaa09e06
commit
04a5d8d95d
5
Makefile
5
Makefile
@ -4,7 +4,7 @@ PACKAGER = $(shell id -u):$(shell id -g)
|
|||||||
DOCKER_VERSION = $(shell docker version --format '{{.Client.Version}}')
|
DOCKER_VERSION = $(shell docker version --format '{{.Client.Version}}')
|
||||||
BASE_IMAGE = $$(awk -F= '$$1=="ID" { print $$2 ;}' /etc/os-release):$$(awk -F= '$$1=="VERSION_ID" { print $$2 ;}' /etc/os-release | tr -d '"')
|
BASE_IMAGE = $$(awk -F= '$$1=="ID" { print $$2 ;}' /etc/os-release):$$(awk -F= '$$1=="VERSION_ID" { print $$2 ;}' /etc/os-release | tr -d '"')
|
||||||
NO_CACHE = false
|
NO_CACHE = false
|
||||||
TCMALLOC =
|
TCMALLOC =
|
||||||
PORTABLE = 0
|
PORTABLE = 0
|
||||||
ARGS ?=
|
ARGS ?=
|
||||||
|
|
||||||
@ -80,3 +80,6 @@ clean-bin-image:
|
|||||||
|
|
||||||
clean-deb-image:
|
clean-deb-image:
|
||||||
- docker rmi $(DEB_IMAGE)
|
- docker rmi $(DEB_IMAGE)
|
||||||
|
|
||||||
|
style:
|
||||||
|
find . -name "*.go" -exec gofmt -w {} \;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user