Giter Club home page Giter Club logo

Comments (5)

eikaramba avatar eikaramba commented on May 26, 2024

also i think your readme has an error because the default format seems to misspell where the percentage symbol is placed, see above where i just copied it from your readme.

from gradle-android-git-version.

 avatar commented on May 26, 2024

Was this performed on a commit from a detached head? It looks like git is giving the full sha1 instead of a branch name because there is no branch.

The string looks a bit strange because the - character is inside the delimiters. This is actually intentional so that the each part (including the - character) disappears when not needed.

from gradle-android-git-version.

eikaramba avatar eikaramba commented on May 26, 2024

i don't think so, but actually there is something interesting if i look at the commit from which it was build:
grafik

I guess you are right, i can test tomorrow if the format looks fine if it was builded from a regular commit. in this case it was build from a remote merge.

regarding the default format string, got it. understand it now.

from gradle-android-git-version.

 avatar commented on May 26, 2024

Let me know -- many CI systems optimize or otherwise manipulate their local git repo so that it doesn't look like what you might get on your local system and this is a common source of problems for any git-based auto-versioning code. You'll need an "unshallow" fetch on a normal branch for all of this to work.

from gradle-android-git-version.

eikaramba avatar eikaramba commented on May 26, 2024

ok a regular build went through bamboo and yes, it was actually because of the remote merge it seems. maybe that is something which can be added to the readme, but at least we now know why it happens.

from gradle-android-git-version.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.