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

git describe shows the wrong thing #1941

Closed
cwgoes opened this issue Aug 8, 2018 · 7 comments
Closed

git describe shows the wrong thing #1941

cwgoes opened this issue Aug 8, 2018 · 7 comments

Comments

@cwgoes
Copy link
Contributor

cwgoes commented Aug 8, 2018

git describe

v0.18.0-rc0-608-g23e3d5ac

git describe --tags is more accurate.

cc @alessio

@alessio
Copy link
Contributor

alessio commented Aug 8, 2018

Apparently develop does not contain the most recent tags:

alessio@bizet:~/.../github.com/cosmos/cosmos-sdk$ git branch
  alessio/1632-examples-simple-integration-tests
* develop
  master
alessio@bizet:~/.../github.com/cosmos/cosmos-sdk$ git branch --contains tags/v0.23.1
  master
alessio@bizet:~/.../github.com/cosmos/cosmos-sdk$ git branch --contains tags/v0.23.0
  master

It makes sense in the context of git flow to not merge tags back to develop, though it'd be nice to achieve a numeric versioning scheme for unreleased develop builds. It's quite a common practice in Debian to rely on git describe to package upstream git snapshots, its output format follows:

<most recent tag>-<# of commits since most recent tag>-g<short hash>

This allows one to introduce a monotically increasing component before the commit hash. It'd be quite easy too to modify the Makefile's COMMIT_HASH variable and handle the command's output appropriately.

@ValarDragon
Copy link
Contributor

Do we achieve this by merging tagged releases back into develop?

@alessio
Copy link
Contributor

alessio commented Sep 10, 2018

Yes, correct. We need to merge the tags back to develop

@alessio alessio changed the title git describe shows the wrong thing git describe shows the wrong thing Sep 10, 2018
@alexanderbez
Copy link
Contributor

@alessio what will this achieve for us that is currently a pain point or what benefits will it provide us?

@alessio
Copy link
Contributor

alessio commented Sep 11, 2018

@alexanderbez:

alessio@bizet:~/.../github.com/cosmos/cosmos-sdk$ gaiacli version
0.24.2-461261a3

If we could rely on git describe we would have a consistent numeric versioning scheme, e.g.:

alessio@bizet:~/.../github.com/cosmos/cosmos-sdk$ gaiacli version
0.24.2-397-g461261a3

@ValarDragon
Copy link
Contributor

Merging the tagged release back into develop seems reasonable / like something we can do.

@ebuchman
Copy link
Member

We should always be merging tagged releases back to develop as part of gitflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants