Skip to content

use long git tag as default version #2021

Open
@fogfish

Description

@fogfish

This is a question about rebar v 3.9.0 behaviour on auto assignment of app version based on git tag.

Current behaviour

The app.src uses a git version

{application, xxx,
   [
      {vsn,         "git"},
      ...

which is replace by rebar3 to

{application, xxx,
   [
      {vsn,         "2.0.7+build.110.refc70120b"},
      ...

https://github.com/erlang/rebar3/blob/master/src/rebar_git_resource.erl#L269

Expected behaviour

The usage of git describe --tags --long gives a nice, shorter and still lexicographically ordered version e.g. 2.0.7-1-gc70120b

Whould it make sense to start using it instead of current combination?

git -c color.ui=false log --oneline --no-walk --tags --decorate
git log -n 1 --pretty=format:\"%h\n\" 
git rev-list HEAD

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionquestion relative to the project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions