From 1f1ee7b986cd6abe619b39d969b1c43ec6df8b27 Mon Sep 17 00:00:00 2001 From: c9s Date: Tue, 15 Mar 2022 21:54:18 +0800 Subject: [PATCH] fix makefile --- Makefile | 4 +++- pkg/version/dev.go | 4 ++-- pkg/version/version.go | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 4f5e1a292..9ad1f5f16 100644 --- a/Makefile +++ b/Makefile @@ -129,14 +129,16 @@ pkg/version/dev.go: .FORCE BUILD_FLAGS="!release" VERSION_SUFFIX="-dev" bash utils/generate-version-file.sh > $@ dev-version: pkg/version/dev.go + git add $< git commit $< -m "update dev build version" cmd-doc: .FORCE go run ./cmd/update-doc git add -v doc/commands - git commit -m "update command doc files" doc/commands + git commit -m "update command doc files" doc/commands || true version: pkg/version/version.go pkg/version/dev.go migrations cmd-doc + git add $< $(word 2,$^) git commit $< $(word 2,$^) -m "bump version to $(VERSION)" || true [[ -e doc/release/$(VERSION).md ]] || (echo "file doc/release/$(VERSION).md does not exist" ; exit 1) git add -v doc/release/$(VERSION).md && git commit doc/release/$(VERSION).md -m "add $(VERSION) release note" || true diff --git a/pkg/version/dev.go b/pkg/version/dev.go index 406c82b9f..5f54ba858 100644 --- a/pkg/version/dev.go +++ b/pkg/version/dev.go @@ -2,7 +2,7 @@ package version -const Version = "v1.28.0-fdfe6bc5-dev" +const Version = "v1.28.0-e4c8db82-dev" -const VersionGitRef = "fdfe6bc5" +const VersionGitRef = "e4c8db82" diff --git a/pkg/version/version.go b/pkg/version/version.go index 73c5fdb65..9fee91e3f 100644 --- a/pkg/version/version.go +++ b/pkg/version/version.go @@ -2,7 +2,7 @@ package version -const Version = "v1.28.0-fdfe6bc5" +const Version = "v1.28.0-e4c8db82" -const VersionGitRef = "fdfe6bc5" +const VersionGitRef = "e4c8db82"