From 2fd6b9155deb5b33031c21360a18f6406a4fe8ee Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 17 Feb 2025 12:39:38 +0800 Subject: [PATCH] Makefile: Don't use --long in git-describe We don't need the commit ID if it is known to match a tag. --- Makefile | 2 +- diff --git a/Makefile b/Makefile index a35195cbe47f408fac849ed4bfcef697f10eb954..bda106dff0128183c7be699824f8e653af87b909 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ git_hooks_client/git_hooks_client: version.go: - printf 'package main\nconst VERSION="%s"\n' $(shell git describe --tags --long --always --dirty) > $@ + printf 'package main\nconst VERSION="%s"\n' $(shell git describe --tags --always --dirty) > $@ clean: $(RM) forge version.go vendor -- 2.48.1