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

Auto tag untagged release branch as snapshot #19

Closed
Slugger opened this issue Feb 1, 2015 · 7 comments
Closed

Auto tag untagged release branch as snapshot #19

Slugger opened this issue Feb 1, 2015 · 7 comments
Milestone

Comments

@Slugger
Copy link
Contributor

Slugger commented Feb 1, 2015

If I do a versionDisplay in release/1.0 and the branch has no tags then display=1.0.0, but this really isn't 1.0.0 yet. I think this should display 1.0.0-SNAPSHOT since this isn't 1.0.0 until it's tagged as such. Builds done from this branch would produce outputs for tags not yet created; causing confusion when QA reports back issues from these builds.

If this branch does have a tag for 1.0.0 and you do a versionDisplay even if your HEAD is at the tag then versionDisplay gives you 1.0.1. If a dev does a build at the HEAD=tag they should get a version equal to the tag. If changes have been committed since the 1.0.0 tag, but those changes haven't been tagged you should get 1.0.1-SNAPSHOT, until it's tagged then you'd get 1.0.1. Again, avoiding creating builds for tags not yet created.

@dcoraboeuf
Copy link
Contributor

The real version is the full version, not the display one. But I agree with your point.

To summarise, you would have:

  • display version = "computed version"-SNAPSHOT when not on the last tag
  • display version = tag when on the tag

@dcoraboeuf
Copy link
Contributor

I think I'll make this feature optional. In my case, I tag only at the very last time, when the publication is actually done. For everything, I'm only working with the full version, and the display version is just something I use for the... display and the final tagging (Git tagging, but also Docker image tagging).

I'll try to work on this in the next days - but I'm quite busy with other matters so do not expect a quick feedback for now :( Any pull request is welcome though :)

@dcoraboeuf dcoraboeuf added this to the 1.3 milestone Feb 6, 2015
dcoraboeuf added a commit that referenced this issue Feb 6, 2015
@dcoraboeuf
Copy link
Contributor

Code is ready for Git (I won't do it for Subversion, not now at least). Can you tell me if it looks OK? If yes, I'll release this asap.

dcoraboeuf added a commit that referenced this issue Feb 6, 2015
@dcoraboeuf
Copy link
Contributor

I have added the corresponding documentation in the main README.

@Slugger
Copy link
Contributor Author

Slugger commented Feb 6, 2015

I'll take a look during the weekend at some point and will get back to you
by Monday morning at the latest.

On Fri, Feb 6, 2015 at 1:38 PM, Damien Coraboeuf notifications@github.com
wrote:

I have added the corresponding documentation in the main README.


Reply to this email directly or view it on GitHub
#19 (comment).

@dcoraboeuf
Copy link
Contributor

Take your time - I won't release before next week.

@Slugger
Copy link
Contributor Author

Slugger commented Feb 8, 2015

Looks good to me; I only focused on the release branch features when releaseMode='snapshot'; I didn't test for any regressions, etc. New feature works as expected.

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

2 participants