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

Extract rust-toolchain.toml channel, pass to submodules #4518

Merged
merged 2 commits into from
Oct 24, 2024

Conversation

graydon
Copy link
Contributor

@graydon graydon commented Oct 24, 2024

This is a somewhat crude but straightforward fix to the problem of version mismatches between the rust-toolchain.toml files stored in the stellar-core repo and those stored in the rs-soroban-env submodules: the makefile now extracts the channel name and appends it, explicitly, to all cargo invocations it makes.

I.e. if stellar-core's rust-toolchain.toml file says channel = "1.81.0", the makefile will run cargo +1.81.0 build in all the submodules, overriding whatever they have in their own rust-toolchain.toml files.

We may wish to tweak this further, or to add additional build variants to the CI matrix of either this repo or rs-soroban-env, but I think this sort of "make sure they're all the same" step is basically going to be a part of any correct solution to the problem anyways, so I think we should probably at least start with it.

leighmcculloch
leighmcculloch previously approved these changes Oct 24, 2024
@graydon graydon added this pull request to the merge queue Oct 24, 2024
Merged via the queue into stellar:master with commit 4203de9 Oct 24, 2024
13 checks passed
@graydon graydon deleted the force-rust-toolchain-version branch October 24, 2024 04:21
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