Skip to content

GDK Update Error: Clobbering an Existing Tag

Overview

Hey! I noticed that running gdk update on my local repo does not work anymore. The problem is that the gitaly v13.3.1 was already created and was changed later (and git prevents the "clobbering" of the local tag).

GDK Output

------------------------------------------------------------
Updating gitlab-org/gitaly to e4ff30e44b6ac21f33290bbe7a9cbbd42f98d4d1
------------------------------------------------------------
From https://gitlab.com/gitlab-org/gitaly
 ! [rejected]          v13.3.1    -> v13.3.1  (would clobber existing tag)
error: Could not fetch origin
command failed: git fetch --all --tags --prune
make: *** [gitaly/.git/pull] Error 1
Makefile:343: recipe for target 'gitaly/.git/pull' failed
❌️ ERROR: Failed to update.

Proposal (optional)

I have a (hopefully) small idea how GDK could handle that error. I don't know how complex it would be (especially since GDK is using make apparently) but if the GDK CLI was able to catch that error, it could then offer to git fetch --tags -f (which I did manually to resolve the problem).

Environment (optional)

  • Operating System: Ubuntu 18
  • The contents of your gdk.yml: (empty)
  • Ruby version: ruby 2.6.6p146 (2020-03-31 revision 67876) [x86_64-linux]
  • GDK version: 458e55e1