-
Notifications
You must be signed in to change notification settings - Fork 12
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
Update from 2.0.2 to 2.1.7 and reapply patches #17
Conversation
|
(Idk how to do this properly, ended up just doing:
This seems lame because the commit graph doesn't reflect the fact that this originates from upstream 8d8768a. Maybe the intended way to do this is to create a new branch with each update instead of merging into clickhouse-new? But then there can't be a PR. PR always corresponds to a merge, and merge is not what we need to do here.) |
https://clickhouse.com/docs/en/development/contrib#adding-and-maintaining-third-party-libraries explains a better way to do this. |
Do you mean this part?:
Does it mean the same as what this PR did, but instead of merging into clickhouse-new merge into a new branch? Or does it mean: (1) create and push a new branch with an orphan empty commit, (2) create a second new branch branching off from that empty commit, (3) put the upstream and the patches into the second branch, (4) create a PR to merge the second branch into the first? |
Here is how I would do it: Upstream zlib labels certain commits with a tag: https://github.com/zlib-ng/zlib-ng/tags ... these are the versions that we want to use as a base. Let's use The first step would be to create a branch
Next, we need to pick old patches into Then push The docs say:
That is admittedly quite complicated and has little benefit. I'll update the docs. |
This is upstream tag 2.1.7 (8d8768a "2.1.7 Release") + the ~3 of our patches that are not obsolete.