-
Notifications
You must be signed in to change notification settings - Fork 132
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
Conversation
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"]} |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
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"] }
5e2aeb1
to
be021f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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?
rustc
version in toolchain & updated out of date libraries that wouldn't compilevendored
version ofopenssl
libraryTo-Do