Skip to content

Commit

Permalink
More tagging fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
LandonTClipp committed Jan 2, 2025
1 parent ad794f4 commit f018fb3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ tasks:
tag.push:
desc: Push tags to origin
cmds:
- git push origin --tags
- git push origin --tags --force
2 changes: 1 addition & 1 deletion mockery-tools.env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION=v3.0.0-alpha.4
VERSION=v3.0.0-alpha.5
3 changes: 3 additions & 0 deletions tools/cmd/tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ func (t *Tagger) createTag(repo *git.Repository, version string) error {
}
majorVersion := strings.Split(version, ".")[0]
for _, v := range []string{version, majorVersion} {
if err := repo.DeleteTag(v); err != nil {
logger.Warn().Err(err).Msg("failed to delete tag, might be okay.")
}
_, err = repo.CreateTag(v, hash.Hash(), &git.CreateTagOptions{
Tagger: &object.Signature{
Name: "Landon Clipp",
Expand Down

0 comments on commit f018fb3

Please sign in to comment.