Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gaiad version reports githash instead of tag name for v9.0.3 and v9.1.0 #2529

Closed
5 tasks
alexpGH opened this issue May 24, 2023 · 1 comment · Fixed by #2549
Closed
5 tasks

gaiad version reports githash instead of tag name for v9.0.3 and v9.1.0 #2529

alexpGH opened this issue May 24, 2023 · 1 comment · Fixed by #2549
Assignees
Labels
scope: docs Improvements or additions to documentation type: bug Issues that need priority attention -- something isn't working

Comments

@alexpGH
Copy link

alexpGH commented May 24, 2023

Summary of Bug

gaiad version reports githash instead of tag name for v9.0.3 and v9.1.0

Steps to Reproduce

git clone -b v9.1.0 https://github.com/cosmos/gaia
cd gaia
make install
gaiad version
-> HEAD-321d15a574def0f338ceacc5c060159ebba95edc
expected: v9.1.0


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
  • Is a spike necessary to map out how the issue should be approached?
@alexpGH alexpGH added type: bug Issues that need priority attention -- something isn't working status: waiting-triage This issue/PR has not yet been triaged by the team. labels May 24, 2023
@github-project-automation github-project-automation bot moved this to 🩹 Triage in Cosmos Hub May 24, 2023
@mpoke mpoke removed the status: waiting-triage This issue/PR has not yet been triaged by the team. label May 26, 2023
@mpoke mpoke moved this from 🩹 Triage to 📥 Todo in Cosmos Hub May 26, 2023
@MSalopek MSalopek linked a pull request May 26, 2023 that will close this issue
18 tasks
@MSalopek
Copy link
Contributor

Thanks for opening the issue.

This is the culprit:
https://github.com/cosmos/gaia/blob/main/Makefile#L7C1-L13

# Makefile
ifeq (,$(VERSION))
  VERSION := $(shell git describe --exact-match 2>/dev/null)
  # if VERSION is empty, then populate it with branch's name and raw commit hash
  ifeq (,$(VERSION))
    VERSION := $(BRANCH)-$(COMMIT)
  endif
endif

Tags for v9.0.3 and v9.1.0 were lightweight tags, so when you do git describe --exact-match there's no exact match.

The tags were probably created using Github UI which always creates lightweight tags (as opposed to annotated tags when you use the CLi git -s -a v10.0.0 -m 'v10.0.0').

We're updating our release procedure as we speak. These changes will be included in the documentation.

@MSalopek MSalopek moved this from 📥 Todo to 👀 In review in Cosmos Hub May 26, 2023
@MSalopek MSalopek added scope: docs Improvements or additions to documentation automation labels May 26, 2023
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Cosmos Hub Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: docs Improvements or additions to documentation type: bug Issues that need priority attention -- something isn't working
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

3 participants