From fb1880e162cbd94d34a4a779752ba031c36b123f Mon Sep 17 00:00:00 2001 From: a-kenji Date: Wed, 16 Mar 2022 11:10:33 +0100 Subject: [PATCH] fix: release tagging (#1223) Switch from "lightweight" tags to "annotated" tags for releases, since "lightweight" tags are meant for private or temporary object labels. `man git tag`: ``` Tag objects (created with -a, -s, or -u) are called "annotated" tags; they contain a creation date, the tagger name and e-mail, a tagging message, and an optional GnuPG signature. Whereas a "lightweight" tag is simply a name for an object (usually a commit object). Annotated tags are meant for release while lightweight tags are meant for private or temporary object labels. For this reason, some git commands for naming objects (like git describe) will ignore lightweight tags by default. ``` --- Makefile.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.toml b/Makefile.toml index bb8da5a4..198597de 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -237,7 +237,7 @@ args = ["commit", "-aem", "chore(release): v${CARGO_MAKE_CRATE_VERSION}"] [tasks.tag-release] command = "git" -args = ["tag", "v${CARGO_MAKE_CRATE_VERSION}"] +args = ["tag", "--annotate", "--message", "Version ${CARGO_MAKE_CRATE_VERSION}", "v${CARGO_MAKE_CRATE_VERSION}"] [tasks.publish-zellij-tile] ignore_errors = true