Coder Social home page Coder Social logo

Comments (4)

ajoberstar avatar ajoberstar commented on August 25, 2024

In your examples, you use a scope of minor for the final stage, but use patch for milestone and rc. I think that's the cause of the difference you see.

If you pass empty strings or just don't add the properties at all, it will leave the version as is if the commit is already tagged.

But maybe I'm not following your desired behavior.

from reckon.

childnode avatar childnode commented on August 25, 2024

ohm .. sorry @ajoberstar

  1. for the "delay"
  2. for the bad example
    BUT even, the inconsistency is still there
bash:$ git describe
0.0.1

bash:$ ./gradlew build -Preckon.scope=patch -Preckon.stage=final
> Configure project : 
Reckoned version: 0.0.2

while rc or milestone resolve to tagged 0.0.1

another way round, even -Preckon.scope=minor -Preckon.stage=rc and -Preckon.scope=minor -Preckon.stage=milestone are 0.0.1 while final bumps to 0.1.0 as shown above

so, is there a reason for this "final" is handled differently on tagged commits?

from reckon.

ajoberstar avatar ajoberstar commented on August 25, 2024

Reckon tries to determine if you intend to "rebuild" the tagged commit. Usually this is determined by whether you provide input or not via the properties. If it's a tagged pre-release, you have more flexibility. If it's a tagged final version, it only lets you re-release it as another final version. It's mostly an intention to not allow potentially "invalid" increases in the version. In some cases they might be too restrictive.

Which version are you on? The rebuild behavior was rewritten recently. Off the top of my head, I'm thinking that providing input (via properties) should prevent it from doing a rebuild (ideally failing).

from reckon.

childnode avatar childnode commented on August 25, 2024

hi andrew,

yes indeed, I was on some old stuff hanging around, your "rebuild" behaviour now rejects re-releasing tagged finals other than final.
these new build failure indications with your explanations made this clear.

thank you

from reckon.

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.