Files
mediacommon/scripts/format.mk
2025-01-10 17:30:15 +01:00

11 lines
262 B
Makefile

define DOCKERFILE_FORMAT
FROM $(BASE_IMAGE)
RUN go install mvdan.cc/gofumpt@v0.5.0
endef
export DOCKERFILE_FORMAT
format:
echo "$$DOCKERFILE_FORMAT" | docker build -q . -f - -t temp
docker run --rm -it -v $(shell pwd):/s -w /s temp \
sh -c "gofumpt -l -w ."