Fix build version for local build and snapshot publishing#4326
Fix build version for local build and snapshot publishing#4326ajantha-bhat wants to merge 1 commit intoapache:masterfrom
Conversation
|
cc: @rdblue , @RussellSpitzer , @jackye1995 , @nastra |
|
We don't put a |
It comes from this function in Lines 619 to 639 in 7f07ed4 |
|
Okay, so we just need to tag |
Yes I believe so. The plugin adds a gradle task This is equivalent to To test your idea, I tried tagging locally. So if we wanted to publish a snapshot using the next minor version number (14 in this case), and ignore the fact that we might ship a patch now and then, what you suggested would be correct @rdblue. If we wanted to take into account the patch, we could match on it. But presently we're more or less always working towards the next minor version, and then occasionally releasing a patch that only cherry-picks. So the build against TLDR - tagging |
|
So it seems we need to update the release instructions to include a tag of We can likely remove all but the latest |
|
Alternatively, we can update the But downstream people who fork this might also be using this in their workflows, which might be where the |
@kbendick: I already tried this before raising the PR. This doesn't work,
So, I think new release tags are created from release branch instead of master. Also we may not able to create tags from the @rdblue: What is the problem with |
|
I didn’t try the Let me try it locally. But if we do switch to using version.txt file, can we remove the function that’s referenced? |
As mentioned, there is no tag from master branch starting with |
|
If I remember correctly, this is why we added the release-base-0.12.0 tag to master. That way we have a tag to pick up. |
|
Ahh I understand now.
So I think |
|
@kbendick: I feel publishing as |
@rdblue : Yes. But only problem is that we may not be able to create an exact tag on So, please create a build tag |
|
That build tag has already been created. If you fetch latest master and build, it should be |
I can't see it in here (https://github.com/apache/iceberg/tags) |
|
I created the tag. Can you both fetch tags and try it again? |
I can see it now after this. Thanks for resolving this @rdblue |
yep correct, that was the reason we added this tag (since we didn't want to maintain a version.txt file on master) |



Today I observed that our local build and daily snapshots are still pointing to
0.13.0-SNAPSHOTeven though we released0.13.1, it should point to the next version0.13.2-SNAPSHOTAfter debugging found that in this code
we are looking for last annotated tag and it seems our release owners are not having annotated tag as they are creating a new branch for release instead of tagging from the master branch.
As we cannot amend the commit and create annotated tag, using the
version.txtpointing to the next version in the master branch now.