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

chore(bindings): change in rustup behavior #5160

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dougch
Copy link
Contributor

@dougch dougch commented Mar 3, 2025

Release Summary:

Resolved issues:

none

Description of changes:

Our rust related GitHub actions are failing on the generate.sh step with:

+ cargo run -- ../s2n-tls-sys
error: toolchain '1.63.0-x86_64-unknown-linux-gnu' is not installed
help: run `rustup toolchain install 1.63.0-x86_64-unknown-linux-gnu` to install it

Which appears related to rust-lang/rustup#3985

Adds a test to see if the toolchain is available and if not, install it.

Call-outs

This seems like it should belong in a rust setup related action instead?

Testing:

How is this change tested (unit tests, fuzz tests, etc.)? locally
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added the s2n-core team label Mar 3, 2025
@dougch dougch marked this pull request as ready for review March 4, 2025 00:38
@dougch dougch requested review from goatgoose and jmayclin March 4, 2025 00:39
@@ -35,6 +35,9 @@ cp -r \

# generate the bindings modules from the copied sources
pushd generate
# Behavior change from https://github.com/rust-lang/rustup/pull/3985
rustc --version || rustup toolchain install
Copy link
Contributor

Choose a reason for hiding this comment

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

On one hand it feels weird to install the toolchain in the script, but I guess that was the previous behavior?

Approving because we only expect this to be run by s2n-tls developers, so it should be a totally internal change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants