Skip to content

Simplify dependency upgrade process and upgrade Pulsar C++ client to 3.1.0 #56

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

Conversation

BewareMyPower
Copy link
Contributor

@BewareMyPower BewareMyPower commented Dec 5, 2022

Motivation

Currently there are many files that require the download URLs of dependencies to download them. It's hard to maintain if some download URL changed. For example, #17 updates the ZLib download URL under https://zlib.net/fossils/ for macOS build. However, the ZLib download URL for Linux is under https://github.com/madler/zlib/archive/. The same goes for the Pulsar C++ client, it's hard to test another URL because the candidates and the official releases are stored in different paths.

Modifications

Add a dep-url.sh to provide two shell functions:

  • pulsar_cpp_base_url: Print the base URL of the Pulsar C++ client release, there are the source code or binaries in the subpath.
  • download_dependency: Download the source code according to the dependency file and the dependency name.

Then apply the dep-url.sh in all files that need to download the source or binary of the dependencies.

In addition, this PR upgrades the pulsar-cpp dependency to 3.1.0 so that the Windows build can depend on an official release.

@BewareMyPower BewareMyPower force-pushed the bewaremypower/update-pulsar-cpp-version branch 3 times, most recently from 6d7e00e to 3a6b263 Compare December 6, 2022 09:29
@BewareMyPower BewareMyPower changed the title [DO NOT MERGE] Upgrade Pulsar C++ client to 3.1.0-candidate-3 [DO NOT MERGE] Simplify dependency upgrade process and upgrade Pulsar C++ client to 3.1.0 Dec 6, 2022
@BewareMyPower BewareMyPower force-pushed the bewaremypower/update-pulsar-cpp-version branch from 3a6b263 to 3d45687 Compare December 6, 2022 12:44
…3.1.0

### Motivation

Currently there are many files that require the download URLs of
dependencies to download them. It's hard to maintain if some download
URL changed. For example,
apache#17 updates the ZLib
download URL under https://zlib.net/fossils/ for macOS build. However,
the ZLib download URL for Linux is under
https://github.com/madler/zlib/archive/. The same goes for the Pulsar
C++ client, it's hard to test another URL because the candidates and the
official releases are stored in different paths.

### Modifications

Add a `dep-url.sh` to provide two shell functions:
- `pulsar_cpp_base_url`: Print the base URL of the Pulsar C++ client
  release, there are the source code or binaries in the subpath.
- `download_dependency`: Download the source code according to the
  dependency file and the dependency name.

Then apply the `dep-url.sh` in all files that need to download the
source or binary of the dependencies.

In addition, this PR upgrades the `pulsar-cpp` dependency to 3.1.0 so
that the Windows build can depend on an official release.
@BewareMyPower BewareMyPower force-pushed the bewaremypower/update-pulsar-cpp-version branch from 3d45687 to 3c84c9e Compare December 7, 2022 02:48
@BewareMyPower
Copy link
Contributor Author

Now, all tests passed. Wait for the official C++ client 3.1.0 release.

@BewareMyPower BewareMyPower changed the title [DO NOT MERGE] Simplify dependency upgrade process and upgrade Pulsar C++ client to 3.1.0 Simplify dependency upgrade process and upgrade Pulsar C++ client to 3.1.0 Dec 7, 2022
@BewareMyPower BewareMyPower merged commit 724012b into apache:main Dec 8, 2022
@BewareMyPower BewareMyPower deleted the bewaremypower/update-pulsar-cpp-version branch December 8, 2022 13:15
@BewareMyPower
Copy link
Contributor Author

Let's merge it first. After the official 3.1.0 release is done, we only need to update the URL in build-support/dep-url.sh.

@BewareMyPower BewareMyPower added this to the 3.0.0 milestone Dec 14, 2022
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.

2 participants