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

fix(build): only append -beta for non-release builds #810

Closed
wants to merge 1 commit into from

Conversation

chenrui333
Copy link

for 3.9.0, the NATS_VERSION_STRING is 3.9.0-beta instead of 3.9.0, update the build config to only append -beta for non-release builds

relates to Homebrew/homebrew-core#192554

@kozlovic
Copy link
Member

kozlovic commented Oct 2, 2024

@chenrui333 Hum... I think this is going to be a problem. We changed a little while back the way releases are done, and they are no longer done from main branch, instead we have "release" branches. I reviewed the v3.9.0 PR yesterday and the "-beta" was removed.

My suspicion is that homebrew does it from main? I have added @levb here to comment.

@kozlovic
Copy link
Member

kozlovic commented Oct 2, 2024

@levb I think the release process is wrong here. If you use release branches, you have to tag in that branch, not in main. If we follow the tag, the src/version.h has indeed the -beta suffix. So what went wrong?

@kozlovic
Copy link
Member

kozlovic commented Oct 2, 2024

@levb From the release page, v3.9.0 points to the commit on the release branch 233ca8e, but this is the one before the update of release version: 28a5948.

We should redo as a v3.9.1 to fix all that.

@chenrui333 I don't think this PR is necessary, instead, I think this release was just incorrect. But I will @levb have the final word.

@chenrui333
Copy link
Author

yeah, works for me, but I also raised this question on the tag commit as well.

@chenrui333
Copy link
Author

looks like both of these two commits got tagged with 3.9.0:

@chenrui333
Copy link
Author

since the 3.9.0 release is wrong, can we maybe re-tag it?

@kozlovic
Copy link
Member

kozlovic commented Oct 2, 2024

@chenrui333 No, I would prefer to move to v3.9.1 than re-tag. I know this is no Golang, but we had very bad experience in the past because some proxies already captured a given tag and when we re-tagged a release it made a mess. So moving forward we decided to own our mistake and bump the version instead of re-tagging.

@chenrui333
Copy link
Author

yeah, I would also prefer to have a new release. Should I just close the related homebrew PR for the new release then? Thanks!

@kozlovic
Copy link
Member

kozlovic commented Oct 2, 2024

Should I just close the related homebrew PR for the new release then? Thanks!

Sure, once @levb release v3.9.1, the homebrew PR can be done. But homebrew has people or automatic processes that submit PRs when detecting a new NATS C release, so we may still have the hombrew PR for v3.9.0 popping before we are ready.

@levb
Copy link
Collaborator

levb commented Oct 2, 2024

@chenrui333 @kozlovic This was my mistake to pass -beta through, working on a 3.9.1 now, it's already fixed in the 3_9 branch.

@levb
Copy link
Collaborator

levb commented Oct 2, 2024

@chenrui333 https://github.com/nats-io/nats.c/releases/tag/v3.9.1

We add -beta in main to make clear that it is not a release-quality build, so 3/5 we should keep the existing CMakeLists.txt as is. Unfortunately the release process is not yet fully automated, and I made the mistake of not removing it. Please try v3.9.1?

@chenrui333
Copy link
Author

close via Homebrew/homebrew-core#192663

@chenrui333 chenrui333 closed this Oct 3, 2024
@chenrui333 chenrui333 deleted the update-version-suffix branch October 3, 2024 02:37
@chenrui333
Copy link
Author

Thanks @levb @kozlovic!

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

Successfully merging this pull request may close these issues.

3 participants