Skip to content

Commit 69e8d87

Browse files
Fix MSRV check for git dependencies (#1373)
1 parent 5902d42 commit 69e8d87

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.evergreen/compile-only.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ source ./.evergreen/env.sh
99
if [ "$RUST_VERSION" != "" ]; then
1010
rustup toolchain install $RUST_VERSION
1111
TOOLCHAIN="+${RUST_VERSION}"
12+
# Remove the local git dependencies for bson and mongocrypt, which don't work properly with the MSRV resolver.
13+
sed -i "s/bson =.*/bson = \"2\"/" Cargo.toml
14+
sed -i "s/mongocrypt =.*/mongocrypt = { version = \"0.2\", optional = true }/" Cargo.toml
1215
CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS=fallback cargo +nightly -Zmsrv-policy generate-lockfile
1316
fi
1417

0 commit comments

Comments
 (0)