From 9f96bb575e0b17322471cd24d29287ffa50fef45 Mon Sep 17 00:00:00 2001 From: appleboy Date: Sat, 12 Apr 2025 09:37:03 +0800 Subject: [PATCH] build: update Go formatting and GitHub actions configuration - Remove `DIST` variable definition - Update the `GOFMT` definition by removing the `-s` flag - Install `gofumpt` latest version instead of an unspecified version Signed-off-by: appleboy --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4cffdec..79b8af6 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,5 @@ -DIST := dist EXECUTABLE := drone-discord -GOFMT ?= gofumpt -l -s -w +GOFMT ?= gofumpt -l -w GO ?= go GOFILES := $(shell find . -name "*.go" -type f) HAS_GO = $(shell hash $(GO) > /dev/null 2>&1 && echo "GO" || echo "NOGO" ) @@ -43,7 +42,7 @@ all: build fmt: @hash gofumpt > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ - $(GO) install mvdan.cc/gofumpt; \ + $(GO) install mvdan.cc/gofumpt@latest; \ fi $(GOFMT) -w $(GOFILES)