[CDRIVER-3308] Should calc_release_version.py check which remote refers to mongodb/mongo-c-driver? Created: 12/Aug/19  Updated: 10/Feb/23

Status: Backlog
Project: C Driver
Component/s: Build
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Kevin Albertson Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: release-improvements
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: CDRIVER-4577

 Description   

I have the following git remotes locally:

> git remote -v
origin	git@github.com:kevinAlbs/mongo-c-driver.git (fetch)
origin	git@github.com:kevinAlbs/mongo-c-driver.git (push)
upstream	git@github.com:mongodb/mongo-c-driver.git (fetch)
upstream	git@github.com:mongodb/mongo-c-driver.git (push)

So "origin" is my fork, and "upstream" is mongodb/mongo-c-driver. When I run calc_release_version.py on the master branch, the script inspects the output of "git show-ref" and looks for refs from origin. But my fork does not have the latest tags, so I get the wrong result.

Perhaps calc_release_version.py should inspect the remotes and match on whichever refers to mongodb/mongo-c-driver.


Generated at Wed Feb 07 21:17:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.