From cd3da42d6fdc337b80c392f94d5b3e21b14624bd Mon Sep 17 00:00:00 2001 From: "Jeffrey A. Clark" Date: Tue, 17 Feb 2026 10:00:28 -0500 Subject: [PATCH] Add Cargo bin directory to PATH in configure-env.sh After installing Rust, the cargo binaries (rustc, cargo, etc.) need to be available in the PATH for subsequent build steps. This adds $CARGO_HOME/bin to the PATH_EXT variable so that Rust tools are accessible when PYMONGO_BUILD_RUST is enabled. Without this, the build would fail with 'Rust toolchain not found' even though Rust was successfully installed by install-rust.sh. --- .evergreen/scripts/configure-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.evergreen/scripts/configure-env.sh b/.evergreen/scripts/configure-env.sh index 8dc328aab..bfc45daee 100755 --- a/.evergreen/scripts/configure-env.sh +++ b/.evergreen/scripts/configure-env.sh @@ -27,7 +27,7 @@ else PYMONGO_BIN_DIR=$HOME/cli_bin fi -PATH_EXT="$MONGODB_BINARIES:$DRIVERS_TOOLS_BINARIES:$PYMONGO_BIN_DIR:\$PATH" +PATH_EXT="$MONGODB_BINARIES:$DRIVERS_TOOLS_BINARIES:$PYMONGO_BIN_DIR:$CARGO_HOME/bin:\$PATH" # Python has cygwin path problems on Windows. Detect prospective mongo-orchestration home directory if [ "Windows_NT" = "${OS:-}" ]; then # Magic variable in cygwin