Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit 3fe06f6

Browse files
ci: Fetch tag before checkout in backcompat test (#61184)
* ci: Fetch tag before checkout in backcompat test * Specify remote * Specify --depth=1 to avoid over-fetching * Test without --depth=1 * fetch tag specifically --------- Co-authored-by: William Bezuidenhout <william.bezuidenhout@sourcegraph.com>
1 parent ab9587a commit 3fe06f6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dev/backcompat/bazel-backcompat.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ else
3131
fi
3232
fi
3333

34+
echo "--- :git: fetch origin v${tag}"
35+
# For back-compat tests, the shared fetching code doesn't guarantee that
36+
# the tag has been fetched (because not all tests require tags), so fetch it here.
37+
git fetch origin tag "v${tag}"
38+
3439
echo "--- :git::rewind: checkout v${tag}"
3540
# --no-overlay makes so that git ensures the files match what is in the tree exactly, removing files that do not match
3641
git checkout --force "v${tag}"

0 commit comments

Comments
 (0)