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: update dependencies and add openssl vendored #1466

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

njgheorghita
Copy link
Collaborator

@njgheorghita njgheorghita commented Sep 19, 2024

What was wrong?

Building the releases is broken (https://github.com/ethereum/trin/actions/runs/10947101080/job/30395908924). IIUC, it probably had something to do with the changes in dependencies in #1448

I've tested these changes locally, and was able to cross compile the release binary, so I'm fairly confident that this will resolve the issue in our broken release workflow

How was it fixed?

  • updated rustc version in toolchain & updated out of date libraries that wouldn't compile
  • added vendored version of openssl library

To-Do

Cargo.toml Outdated
@@ -100,6 +101,7 @@ jsonrpsee = "0.20.0"
keccak-hash = "0.10.0"
lazy_static = "1.4.0"
light-client = { path = "light-client" }
openssl = { version = "0.10.66", features = ["vendored"]}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The main downside of this solution is that openssl is a fairly large library, but I was unable to figure out an alternative solution (see other comment) ... but I'm open to any ideas

Copy link
Member

Choose a reason for hiding this comment

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

the feature native-tls-vendored should be enabled for reqwest and openssl = { version = "0.10.66", features = ["vendored"]} should be removed I believe

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nice, that seems to work fine locally!

Copy link
Member

Choose a reason for hiding this comment

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

Could you try

reqwest = { version = "0.12.7", default-features = false, features = ["native-tls-vendored", "rustls-tls", "json"] }

changing this to

reqwest = { version = "0.12.7", default-features = false, features = ["rustls-tls-native-roots", "json"] }

@njgheorghita njgheorghita force-pushed the deps branch 2 times, most recently from 5e2aeb1 to be021f3 Compare September 19, 2024 20:57
@njgheorghita njgheorghita marked this pull request as ready for review September 19, 2024 20:59
Copy link
Member

@KolbyML KolbyML left a comment

Choose a reason for hiding this comment

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

:shipit:

@njgheorghita njgheorghita merged commit f810cec into ethereum:master Sep 19, 2024
9 checks passed
@njgheorghita njgheorghita deleted the deps branch September 19, 2024 21:35
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