summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Chernyakhovsky <achernya@google.com>2022-08-03 21:12:32 -0400
committerAlex Chernyakhovsky <achernya@mit.edu>2022-08-03 15:22:36 -1000
commit850c1f09556641e0352ec529e956bfda377905c7 (patch)
treee442b72ba043f40f885ef122153f233e1a905991
parent7d2601d4196610de852b94d475f72cd3d55a66ac (diff)
Fetch forcibly while fetching tagsmosh-1.4.0-rc0
`git fetch --tags --unshallow`, run as part of the CI for `git describe` to do the right thing, ran into the error: ``` ! [rejected] mosh-1.4.0-rc0 -> mosh-1.4.0-rc0 (would clobber existing tag) ``` This is because mosh uses annotated tags, whereas the initial fetch command run by actions/checkout@v2 ends up creating an *unannotated* tag of the same name. This means that any time the release CI runs, it would fail. The resolution is straightforward: --force so that the line becomes ``` t [tag update] mosh-1.4.0-rc0 -> mosh-1.4.0-rc0 ``` and the annotation is brought in.
-rw-r--r--.github/workflows/release.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 67a4413..1fac161 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -110,7 +110,7 @@ jobs:
- name: "unshallow git repository for git describe"
if: ${{ startsWith(matrix.os, 'macos') }}
- run: git fetch --tags --unshallow
+ run: git fetch --tags --unshallow -f
- name: "macOS package build"
if: ${{ startsWith(matrix.os, 'macos') }}