Skip to content

Commit f018fb3

Browse files
committed
More tagging fixes
1 parent ad794f4 commit f018fb3

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ tasks:
107107
tag.push:
108108
desc: Push tags to origin
109109
cmds:
110-
- git push origin --tags
110+
- git push origin --tags --force

mockery-tools.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION=v3.0.0-alpha.4
1+
VERSION=v3.0.0-alpha.5

tools/cmd/tag.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ func (t *Tagger) createTag(repo *git.Repository, version string) error {
6565
}
6666
majorVersion := strings.Split(version, ".")[0]
6767
for _, v := range []string{version, majorVersion} {
68+
if err := repo.DeleteTag(v); err != nil {
69+
logger.Warn().Err(err).Msg("failed to delete tag, might be okay.")
70+
}
6871
_, err = repo.CreateTag(v, hash.Hash(), &git.CreateTagOptions{
6972
Tagger: &object.Signature{
7073
Name: "Landon Clipp",

0 commit comments

Comments
 (0)