[Ideas] Should prune tags after fetching from GP repo #137
Unanswered
Ray-Eldath
asked this question in
Ideas / Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
This is just a reminder for those who stumbled upon strange
make create-demo-cluster
error relating to CBDB's version. It's likely that you've fetched from another remote, possibly GP or CBDB on our internal GitLab server, then switched back to the main branch of CBDB on GitHub (i.e., here), then find that yourmake create-demo-cluster
no longer works because CBDB reported a version number v7 instead of v1. This incident was reported at least four times by me and three co-workers.This is because CBDB use
git describe --always
to generate version constant. When another remote are fetched, those tags that are not existent on here are also fetched, casing version constant to be changed to a non-existent value.To solve this, you should run
git fetch --prune --prune-tags
to prune tags not exists on CBDB master.Use case/motivation
No response
Related issues
No response
Are you willing to submit a PR?
Beta Was this translation helpful? Give feedback.
All reactions