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: lock version of hickory-client #6716

Merged
merged 2 commits into from
Dec 9, 2024

Conversation

Misieq01
Copy link
Contributor

@Misieq01 Misieq01 commented Dec 6, 2024

[ Motivation ]

Solves issues in repositories:
universe => https://github.com/tari-project/universe
tarigpuminer => https://github.com/stringhandler/tarigpuminer

From what I understand hickory-client was implemented on version 0.25.0-alpha.2. Since that time there was release for version 0.25.0-alpha.3 and 0.25.0-alpha.4 with breaking changes which require code adjustments. Because we didn't lock version to 0.25.0-alpha.2 here, in mentioned repositories during build when it comes to building tari_core => tari_p2p it tries to use versions higher then 0.25.0-alpha.2 which breaks the build. It also happens in this repository when you delete Cargo.lock file.

To this moment we patched this in mentioned repositories by including these packages with locked versions in Cargo.toml but it cause other smaller problems

Copy link

github-actions bot commented Dec 6, 2024

Test Results (CI)

    3 files    129 suites   38m 51s ⏱️
1 344 tests 1 344 ✅ 0 💤 0 ❌
4 030 runs  4 030 ✅ 0 💤 0 ❌

Results for commit 4cf1fee.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 6, 2024

Test Results (Integration tests)

36 tests  +36   36 ✅ +36   15m 45s ⏱️ + 15m 45s
11 suites +11    0 💤 ± 0 
 2 files   + 2    0 ❌ ± 0 

Results for commit e5cfe33. ± Comparison against base commit d339598.

"dns-over-rustls",
"dnssec-openssl",
], optional = true }
hickory-proto = { version = "=0.25.0-alpha.2" }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this added in here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I've locked hickory-client to 0.25.0-alpha.2 for some reason this hickory-proto still tried to use alpha 4 version of itself which broke the build so I added entry for this package with also locked version to 0.25.0-alpha.2

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are adding a package thats not used by tari. You can see its complaining about it in machete

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed because hickory pushed a new version that doesn't compile, so you have to pin it like this.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please comment why its done there as well, I cant seem to add it via github review

@SWvheerden SWvheerden merged commit 5f23ff0 into tari-project:development Dec 9, 2024
15 of 16 checks passed
@SWvheerden SWvheerden mentioned this pull request Dec 9, 2024
SWvheerden added a commit that referenced this pull request Dec 9, 2024
Fix missing comments in #6716
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