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

bump:git produce unwanted version #184

Open
andreasciamanna opened this issue Apr 28, 2016 · 3 comments
Open

bump:git produce unwanted version #184

andreasciamanna opened this issue Apr 28, 2016 · 3 comments
Labels

Comments

@andreasciamanna
Copy link

Not sure if this is a bug or just a lack of knowledge from my side :)

I start with version 3.4.0.

Running grunt bump:git updates the version to that: 3.4.1-3.3.6-b2-264-g5d71.0

I see what bump does: it calls git describe --tags --always --abbrev=1 --dirty=-d which returns 3.3.6-b2-264-g5d71-d.

  • Why the minor version is also increased?
  • Why I even get an additional ".0" suffix?
  • How can I get just the git hash added to the version (like in the examples shown here by the way)?
@andreasciamanna
Copy link
Author

My configuration:

this.grunt.initConfig({
    pkg:  this.grunt.file.readJSON('package.json'),
    bump: {
        options: {
            files:         ['../sitepress.php'],
            commit:        false,
            createTag:     false,
            push:          false,
            globalReplace: true,
            prereleaseName: 'rc'
        }
    }
});

@lzgrzebski
Copy link

bump

@helgeFox
Copy link

I also get similar results as @andreasciamanna, but would like to have versioning as described in the documentation (just adding number of commits and commit hash). No luck configuring either grunt-bump nor the git-describe options... Any help would be appreciated! :)

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

No branches or pull requests

4 participants